]> git.ipfire.org Git - thirdparty/suricata.git/commit
log/file: Ensure file ctx pointer is returned . 12391/head
authorJeff Lucovsky <jlucovsky@oisf.net>
Sat, 11 Jan 2025 14:23:50 +0000 (09:23 -0500)
committerJeff Lucovsky <jlucovsky@oisf.net>
Tue, 14 Jan 2025 12:46:31 +0000 (07:46 -0500)
commita10ee8d6bc579acbc3f88ba69b2b170b74fec9da
tree931d658c944ce16e82b3f2828732c7e100077084
parentd6c30bbf3270003aed245d8c3dcb9730df77f999
log/file: Ensure file ctx pointer is returned .

The fix for issue 7447 introduced an error with threaded eve output.

The changes that were committed for that issue mishandled the return
value when a file is being opened for the 2nd or higher time.

Instead of returning the existing file context, null was returned.

(cherry picked from commit 1d996c5aed820c34add5693a7a1bd4be00a1e304)
src/util-logopenfile.c