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); }