Skip to content

Commit 79f88e6

Browse files
committed
request: do not fully error on data after HTTP/0.9
In many cases, this is not HTTP/0.9 anyways
1 parent ebe480b commit 79f88e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

htp/htp_request.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,8 @@ int htp_connp_req_data(htp_connp_t *connp, const htp_time_t *timestamp, const vo
10061006
}
10071007

10081008
// Sanity check: we must have a transaction pointer if the state is not IDLE (no inbound transaction)
1009-
if ((connp->in_tx == NULL)&&(connp->in_state != htp_connp_REQ_IDLE)) {
1009+
if ((connp->in_tx == NULL)&&
1010+
(connp->in_state != htp_connp_REQ_IDLE && connp->in_state != htp_connp_REQ_IGNORE_DATA_AFTER_HTTP_0_9)) {
10101011
connp->in_status = HTP_STREAM_ERROR;
10111012

10121013
htp_log(connp, HTP_LOG_MARK, HTP_LOG_ERROR, 0, "Missing inbound transaction data");

0 commit comments

Comments
 (0)