]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Update app-layer-htp.c
authorsxhlinux <sxhlinux@users.noreply.github.com>
Thu, 24 Jul 2014 02:00:40 +0000 (10:00 +0800)
committerVictor Julien <victor@inliniac.net>
Wed, 30 Jul 2014 12:43:44 +0000 (14:43 +0200)
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;

src/app-layer-htp.c

index 2f5ed1ea6fe175efef99e408080de582c42803a5..e18795b804888d87b4741f938cf8dc0ff40d1ac1 100644 (file)
@@ -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);
 }