]> git.ipfire.org Git - thirdparty/suricata.git/commit
log/file: Ensure file ctx pointer is returned . 12375/head
authorJeff Lucovsky <jlucovsky@oisf.net>
Sat, 11 Jan 2025 14:23:50 +0000 (09:23 -0500)
committerJeff Lucovsky <jlucovsky@oisf.net>
Sat, 11 Jan 2025 15:02:41 +0000 (10:02 -0500)
commit1d996c5aed820c34add5693a7a1bd4be00a1e304
tree499a44e96ec461cb63392c6b9d5468b254f37d11
parentad7ff1c91b72a4d856e121bf0de7b0d2521425ef
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.
src/util-logopenfile.c