From: Victor Julien Date: Thu, 6 Sep 2012 08:11:57 +0000 (+0200) Subject: Fix 'no effect' check in timestamp print logic. Coverity 717437. X-Git-Tag: suricata-1.4beta1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=355e981775d0d1d27d395a6491a944e6b60a2b2b;p=thirdparty%2Fsuricata.git Fix 'no effect' check in timestamp print logic. Coverity 717437. --- diff --git a/src/log-httplog.c b/src/log-httplog.c index 941a6ff79f..098473fac0 100644 --- a/src/log-httplog.c +++ b/src/log-httplog.c @@ -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);