From 9b7ee312e3ab5669fbe21e735eb8d0fbb0facca4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 5 Aug 2009 00:04:35 +0200 Subject: [PATCH] Small update. --- src/app-layer-http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-http.c b/src/app-layer-http.c index bfb655e003..b0a635e25c 100644 --- a/src/app-layer-http.c +++ b/src/app-layer-http.c @@ -103,7 +103,7 @@ int HTTPParseRequest(void *http_state, void *parser_state, u_int8_t *input, u_in pstate->buflen++; - if (pstate->buflen > 3 && + if (pstate->buflen >= 4 && pstate->buf[pstate->buflen - 4] == '\r' && pstate->buf[pstate->buflen - 3] == '\n' && pstate->buf[pstate->buflen - 2] == '\r' && pstate->buf[pstate->buflen - 1] == '\n') { printf("HTTPParseRequest: request headers done @ u32 %u, pstate->buflen %u\n", u32, pstate->buflen);