X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=client.c;fp=client.c;h=e1fdca4dd6dbcd4ecd92c4e9b29f1ff983381e6a;hp=bcb6897fb0282a09f2d85f4e61d915c7831d26a9;hb=9cfe019ff4b6637e2bb7fbf5fc8db37abdd3c569;hpb=70b9f135f8400349838df2d682a073a0706245c5 diff --git a/client.c b/client.c index bcb6897..e1fdca4 100644 --- a/client.c +++ b/client.c @@ -193,6 +193,9 @@ static bool client_init_cb(struct client *cl, char *buf, int len) if (!newline) return false; + if (newline == buf) + return true; + *newline = 0; blob_buf_init(&cl->hdr, 0); cl->state = client_parse_request(cl, buf);