From 79f88e601603402ae9ddf678ac3ac62a311f345c Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 19 Mar 2025 21:11:15 +0100 Subject: [PATCH] request: do not fully error on data after HTTP/0.9 In many cases, this is not HTTP/0.9 anyways --- htp/htp_request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htp/htp_request.c b/htp/htp_request.c index 9fddbd8f..0424405d 100644 --- a/htp/htp_request.c +++ b/htp/htp_request.c @@ -1006,7 +1006,8 @@ int htp_connp_req_data(htp_connp_t *connp, const htp_time_t *timestamp, const vo } // Sanity check: we must have a transaction pointer if the state is not IDLE (no inbound transaction) - if ((connp->in_tx == NULL)&&(connp->in_state != htp_connp_REQ_IDLE)) { + if ((connp->in_tx == NULL)&& + (connp->in_state != htp_connp_REQ_IDLE && connp->in_state != htp_connp_REQ_IGNORE_DATA_AFTER_HTTP_0_9)) { connp->in_status = HTP_STREAM_ERROR; htp_log(connp, HTP_LOG_MARK, HTP_LOG_ERROR, 0, "Missing inbound transaction data");