]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
alert-debuglog: cleanup TCP check
authorVictor Julien <victor@inliniac.net>
Tue, 23 Apr 2013 14:09:01 +0000 (16:09 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 23 Apr 2013 15:34:26 +0000 (17:34 +0200)
src/alert-debuglog.c

index 1eb76b8bc7bd52e2d2674d7f705e7b58c6eb034d..f3f5f74896e82b4ab002a56ea55bbff4c95cb8fc 100644 (file)
@@ -320,7 +320,7 @@ TmEcode AlertDebugLogger(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq,
             /* This is an app layer or stream alert */
             int ret;
             uint8_t flag;
-            if ((! PKT_IS_TCP(p)) || p->flow == NULL ||
+            if (!(PKT_IS_TCP(p)) || p->flow == NULL ||
                     p->flow->protoctx == NULL) {
                 return TM_ECODE_OK;
             }