summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c3
1 files changed, 3 insertions, 0 deletions
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);