From: Mats Klepsland Date: Fri, 27 Jan 2017 09:19:01 +0000 (+0100) Subject: output-json-alert: fix wrongful comments X-Git-Tag: suricata-4.0.0-beta1~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c8db1cf0f8dccf0119300addfd2d6a51367e166;p=thirdparty%2Fsuricata.git output-json-alert: fix wrongful comments --- diff --git a/src/output-json-alert.c b/src/output-json-alert.c index 258eeee9ff..031bebb17d 100644 --- a/src/output-json-alert.c +++ b/src/output-json-alert.c @@ -278,7 +278,7 @@ static int AlertJson(ThreadVars *tv, JsonAlertLogThread *aft, const Packet *p) if (p->flow != NULL) { uint16_t proto = FlowGetAppProtocol(p->flow); - /* http alert */ + /* tls alert */ if (proto == ALPROTO_TLS) AlertJsonTls(p->flow, js); } @@ -288,7 +288,7 @@ static int AlertJson(ThreadVars *tv, JsonAlertLogThread *aft, const Packet *p) if (p->flow != NULL) { uint16_t proto = FlowGetAppProtocol(p->flow); - /* http alert */ + /* ssh alert */ if (proto == ALPROTO_SSH) AlertJsonSsh(p->flow, js); } @@ -298,7 +298,7 @@ static int AlertJson(ThreadVars *tv, JsonAlertLogThread *aft, const Packet *p) if (p->flow != NULL) { uint16_t proto = FlowGetAppProtocol(p->flow); - /* http alert */ + /* smtp alert */ if (proto == ALPROTO_SMTP) { hjs = JsonSMTPAddMetadata(p->flow, pa->tx_id); if (hjs) @@ -314,6 +314,8 @@ static int AlertJson(ThreadVars *tv, JsonAlertLogThread *aft, const Packet *p) if (json_output_ctx->flags & LOG_JSON_DNP3) { if (p->flow != NULL) { uint16_t proto = FlowGetAppProtocol(p->flow); + + /* dnp3 alert */ if (proto == ALPROTO_DNP3) { AlertJsonDnp3(p->flow, js); }