diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-06 23:31:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-07 09:49:51 +0200 |
commit | 54a2b63c704cd963dd17101477c62afd30d1b319 (patch) | |
tree | f9d033beb66bf57e02c83c025e9bcac15421296c /lib/http.h | |
parent | 7ae880190126bb5c5a4698f1b290457ea54d78c0 (diff) | |
download | curl-54a2b63c704cd963dd17101477c62afd30d1b319.tar.gz |
http2: simplify and clean up trailer handling
Triggered by a crash detected by OSS-Fuzz after the dynbuf introduction in
ed35d6590e72. This should make the trailer handling more straight forward and
hopefully less error-prone.
Deliver the trailer header to the callback already at receive-time. No
longer caches the trailers to get delivered at end of stream.
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22030
Closes #5348
Diffstat (limited to 'lib/http.h')
-rw-r--r-- | lib/http.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/http.h b/lib/http.h index 9ea3eb283..641bc0b93 100644 --- a/lib/http.h +++ b/lib/http.h @@ -148,7 +148,6 @@ struct HTTP { struct dynbuf header_recvbuf; size_t nread_header_recvbuf; /* number of bytes in header_recvbuf fed into upper layer */ - struct dynbuf trailer_recvbuf; int status_code; /* HTTP status code */ const uint8_t *pausedata; /* pointer to data received in on_data_chunk */ size_t pauselen; /* the number of bytes left in data */ |