aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/http.c b/http.c
index 0960d85..1ecdb19 100644
--- a/http.c
+++ b/http.c
@@ -1050,6 +1050,13 @@ static int header_cr_line(struct http_ctx *const h)
if (res)
{
+ if (res < 0)
+ {
+ fprintf(stderr, "%s: check_length failed\n",
+ __func__);
+ return res;
+ }
+
h->wctx.close = true;
return start_response(h);
}