From b58b87e76e60e8cd292d5edc5e4ba477025704f6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 30 Jan 2014 20:22:54 +0100 Subject: http2: fix size check in on_data_chunk_recv --- lib/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3