From 985cb9257343b277def6d561d0c0592e77abbce1 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 1 Nov 2012 15:17:14 +0100 Subject: [PATCH] http: don't assume http tx to have header alloc'd. Can happen in OOM conditions. Bug #587. --- src/detect-engine-hhd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detect-engine-hhd.c b/src/detect-engine-hhd.c index a2a7abf621..aefa9eb03a 100644 --- a/src/detect-engine-hhd.c +++ b/src/detect-engine-hhd.c @@ -131,6 +131,8 @@ static void DetectEngineBufferHttpHeaders(DetectEngineThreadCtx *det_ctx, Flow * } else { headers = tx->response_headers; } + if (headers == NULL) + continue; htp_header_t *h = NULL; uint8_t *headers_buffer = NULL;