projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48c3bed
)
http2: fix size check in on_data_chunk_recv
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 30 Jan 2014 19:22:54 +0000
(20:22 +0100)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 30 Jan 2014 19:24:15 +0000
(20:24 +0100)
lib/http2.c
patch
|
blob
|
history
diff --git
a/lib/http2.c
b/lib/http2.c
index
c4affe4
..
b54df25
100644
(file)
--- 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;