diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-01-30 20:22:54 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-01-30 20:24:15 +0100 |
commit | b58b87e76e60e8cd292d5edc5e4ba477025704f6 (patch) | |
tree | 4a7fa73c06c0e90042e813f1c80a3b22c477feed | |
parent | 48c3bed43bbd9cee6e4f25d44aa3b251d34ccb72 (diff) |
http2: fix size check in on_data_chunk_recv
-rw-r--r-- | lib/http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index c4affe433..b54df25e3 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -145,7 +145,7 @@ static int on_data_chunk_recv(nghttp2_session *session, uint8_t flags, c->bodystarted = TRUE; } - if(len < c->len) { + if(len <= c->len) { memcpy(c->mem, data, len); c->mem += len; c->len -= len; |