http: don't assume http tx to have header alloc'd. Can happen in OOM conditions. Bug #587.

pull/169/head
Victor Julien 13 years ago
parent 18ecd4b287
commit da7f1d22cc

@ -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];

Loading…
Cancel
Save