From 2073b9db0c604f55d73e8e3dfeeed002a3529d62 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 26 Oct 2011 10:42:52 +0200 Subject: [PATCH] debuglog: uses state selection system. --- src/alert-debuglog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/alert-debuglog.c b/src/alert-debuglog.c index 9c5315b620..ceb7231b28 100644 --- a/src/alert-debuglog.c +++ b/src/alert-debuglog.c @@ -281,7 +281,9 @@ TmEcode AlertDebugLogIPv4(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq fprintf(aft->file_ctx->fp, "PAYLOAD LEN: %" PRIu32 "\n", p->payload_len); fprintf(aft->file_ctx->fp, "PAYLOAD:\n"); PrintRawDataFp(aft->file_ctx->fp, p->payload, p->payload_len); - } else { /* This is an app layer alert */ + } + if (pa->flags & PACKET_ALERT_FLAG_STATE_MATCH) { + /* This is an app layer alert */ int ret; uint8_t flag; if ((! PKT_IS_TCP(p)) || p->flow == NULL ||