http: wait for response line for filename

See http evader case 481
pull/4159/head
Philippe Antoine 6 years ago committed by Victor Julien
parent 579cc9f02b
commit 9665ab0409

@ -1638,8 +1638,12 @@ static int HtpResponseBodyHandle(HtpState *hstate, HtpTxUserData *htud,
int result = 0; int result = 0;
/* see if we need to open the file */ /* see if we need to open the file
if (!(htud->tcflags & HTP_FILENAME_SET)) * we check for tx->response_line in case of junk
* interpreted as body before response line
*/
if (!(htud->tcflags & HTP_FILENAME_SET) &&
(tx->response_line != NULL || tx->is_protocol_0_9))
{ {
SCLogDebug("setting up file name"); SCLogDebug("setting up file name");
@ -1684,7 +1688,7 @@ static int HtpResponseBodyHandle(HtpState *hstate, HtpTxUserData *htud,
} }
} }
} }
else else if (tx->response_line != NULL || tx->is_protocol_0_9)
{ {
/* otherwise, just store the data */ /* otherwise, just store the data */

Loading…
Cancel
Save