]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output/rotate: Remove extra rotation flag register 13035/head
authorJeff Lucovsky <jlucovsky@oisf.net>
Mon, 14 Apr 2025 20:07:24 +0000 (16:07 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 17 Apr 2025 06:22:14 +0000 (08:22 +0200)
Issue: 3436

Remove duplicate register of the rotation flag. Eventually, this will
cause corruption when the file context has been freed and the rotation
flag is deregistered.

src/output-json.c

index b1f327580a06a7a64a7cccce10b2d9a5f7ab3d86..ba3692572e2e7ea299c10704d69f796308a1bf1e 100644 (file)
@@ -1068,7 +1068,6 @@ static int LogFileTypePrepare(
         if (SCConfLogOpenGeneric(conf, json_ctx->file_ctx, DEFAULT_LOG_FILENAME, 1) < 0) {
             return -1;
         }
-        OutputRegisterFileRotationFlag(&json_ctx->file_ctx->rotation_flag);
     }
 #ifdef HAVE_LIBHIREDIS
     else if (log_filetype == LOGFILE_TYPE_REDIS) {