Commit 61c5a99
committed
journal_fdopen: free closure->journal_path on fdopen() error
If fdopen() fails, free and zero out closure->journal_path to clean
up before returning. Other parts of logsrvd inspect closure->journal_path
and use it to determine if journaling is being performed.
Found by the ZeroPath AI Security Engineer <https://zeropath.com>1 parent ddb9cfe commit 61c5a99
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments