]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http: remove BUG_ON(1) statement
authorVictor Julien <victor@inliniac.net>
Tue, 17 Jun 2014 11:56:47 +0000 (13:56 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 21 Jun 2014 09:07:19 +0000 (11:07 +0200)
Remove BUG_ON(1) statement that was a leftover from debugging.

Bug #1189
Bug #1212

src/app-layer-htp.c

index 194b57971efd90e019b1f140e1d9d69acf0f4fd2..125ce3e1e1a50fb2e6ed2a38273c6f903a6117d3 100644 (file)
@@ -781,11 +781,11 @@ static int HTPHandleResponseData(Flow *f, void *htp_state,
     HtpState *hstate = (HtpState *)htp_state;
     hstate->f = f;
     if (hstate->connp == NULL) {
-        SCLogError(SC_ERR_ALPARSER, "HTP state has no connp");
+        SCLogDebug("HTP state has no connp");
         /* till we have the new libhtp changes that allow response first,
          * let's take response in first. */
-        BUG_ON(1);
-        //SCReturnInt(-1);
+        //BUG_ON(1);
+        SCReturnInt(-1);
     }
 
     /* Unset the body inspection (the callback should