]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix 'no effect' check in timestamp print logic. Coverity 717437.
authorVictor Julien <victor@inliniac.net>
Thu, 6 Sep 2012 08:11:57 +0000 (10:11 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 6 Sep 2012 08:18:58 +0000 (10:18 +0200)
src/log-httplog.c

index 941a6ff79fe9881fcb72fb80b373a9515c2873ea..098473fac0367c81ae421130ff5c04649c82c7ca 100644 (file)
@@ -180,7 +180,7 @@ static void LogHttpLogCustom(LogHttpLogThread *aft, htp_tx_t *tx, const struct t
                 break;
             case LOG_HTTP_CF_TIMESTAMP:
             /* TIMESTAMP */
-                if (httplog_ctx->cf_nodes[i]->data == '\0') {
+                if (httplog_ctx->cf_nodes[i]->data[0] == '\0') {
                     strftime(buf, 62, TIMESTAMP_DEFAULT_FORMAT, timestamp);
                 } else {
                     strftime(buf, 62, httplog_ctx->cf_nodes[i]->data, timestamp);