From: Victor Julien Date: Tue, 23 Apr 2013 14:09:01 +0000 (+0200) Subject: alert-debuglog: cleanup TCP check X-Git-Tag: suricata-2.0beta1~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b68d566c4401314ab98c1c971ea16863e2d59801;p=thirdparty%2Fsuricata.git alert-debuglog: cleanup TCP check --- diff --git a/src/alert-debuglog.c b/src/alert-debuglog.c index 1eb76b8bc7..f3f5f74896 100644 --- a/src/alert-debuglog.c +++ b/src/alert-debuglog.c @@ -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; }