]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve: remove duplicate call to LogFileEnsureExists
authorJason Ish <jason.ish@oisf.net>
Thu, 15 Apr 2021 01:46:20 +0000 (19:46 -0600)
committerJason Ish <jason.ish@oisf.net>
Thu, 15 Apr 2021 20:33:05 +0000 (14:33 -0600)
Remove duplicate call to LogFileEnsureExists in the generic
eve thread init function.

src/output-json-common.c

index 42fc00f4ceb08731f185de2065f8241c1adaafef..c7ee6f188da0031687744a199b0ec63c0b961693 100644 (file)
@@ -89,7 +89,6 @@ TmEcode JsonLogThreadInit(ThreadVars *t, const void *initdata, void **data)
     }
 
     thread->ctx = ((OutputCtx *)initdata)->data;
-    LogFileEnsureExists(thread->ctx->file_ctx, t->id);
     thread->file_ctx = LogFileEnsureExists(thread->ctx->file_ctx, t->id);
     if (!thread->file_ctx) {
         goto error_exit;