From: sxhlinux Date: Thu, 24 Jul 2014 02:00:40 +0000 (+0800) Subject: Update app-layer-htp.c X-Git-Tag: suricata-2.1beta1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c85674b0a653828891e307ba5cb943e35e0340fa;p=thirdparty%2Fsuricata.git Update app-layer-htp.c When keyword "boundary=" doesn't exist in the http_header, the value of r is 0 and this condition shouldn't return 0 instead 1; --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 2f5ed1ea6f..e18795b804 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -1041,8 +1041,9 @@ static int HtpRequestBodySetupMultipart(htp_tx_data_t *d, HtpTxUserData *htud) { SCLogDebug("invalid boundary"); return -1; } + SCReturnInt(1); } - SCReturnInt(1); + //SCReturnInt(1); } SCReturnInt(0); }