]> git.ipfire.org Git - thirdparty/suricata.git/commit
output/log: Improve error handling
authorJeff Lucovsky <jlucovsky@oisf.net>
Wed, 11 Dec 2024 13:26:01 +0000 (08:26 -0500)
committerVictor Julien <victor@inliniac.net>
Sat, 4 Jan 2025 18:35:24 +0000 (19:35 +0100)
commite72fc39f831e5c03d7884caa447eb758a345d1c8
tree08ce4e58a522443e61f66a337e60471a0aaaa717
parent6f937c754598fe6da67b6648e8d657fce119eaa5
output/log: Improve error handling

This commit improves error handling for cases when file(s) cannot be
opened.
- Return NULL if file object can't be opened
- checks whether the file object has been opened before
  dereferencing the per-file context.

Issue: 7447
src/util-logopenfile.c