diff --git a/src/detect-engine-hhd.c b/src/detect-engine-hhd.c index 2e996e2fed..745e41283e 100644 --- a/src/detect-engine-hhd.c +++ b/src/detect-engine-hhd.c @@ -131,6 +131,8 @@ static uint8_t *DetectEngineHHDGetBufferForTX(int tx_id, } else { headers = tx->response_headers; } + if (headers == NULL) + goto end; htp_header_t *h = NULL; uint8_t *headers_buffer = det_ctx->hhd_buffers[index];