projects
/
project
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6811b
)
fix infinite loop when the initial two characters in a connection are \r\n
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 23 May 2013 10:35:44 +0000
(12:35 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 23 May 2013 10:35:44 +0000
(12:35 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index
6d23283
..
a971b3b
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-194,8
+194,10
@@
static bool client_init_cb(struct client *cl, char *buf, int len)
if (!newline)
return false;
- if (newline == buf)
+ if (newline == buf) {
+ ustream_consume(cl->us, 2);
return true;
+ }
*newline = 0;
blob_buf_init(&cl->hdr, 0);