summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/connections-glue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connections-glue.c b/src/connections-glue.c
index 9f451e3f..171a36b9 100644
--- a/src/connections-glue.c
+++ b/src/connections-glue.c
@@ -125,6 +125,7 @@ static handler_t connection_handle_read_post_chunked(server *srv, connection *co
while (0 == te_chunked) {
char *p;
chunk *c = cq->first;
+ if (NULL == c) break;
force_assert(c->type == MEM_CHUNK);
p = strchr(c->mem->ptr+c->offset, '\n');
if (NULL != p) { /* found HTTP chunked header line */