Commit f278cb8
committed
sudoers_audit_open: Only unset close function if no servers configured.
Previously, we were always zeroing out the audit close function,
which prevented the exit status from being logged. This fixes
sending exit records to the log server when I/O logging is not being
performed. Also remove an invalid free from log_server_exit() that
was never called due to the bug described above and make audit_details
local to log_server_accept().
Thanks to Joshua Rogers for finding the invalid free which led me
to other the bug.1 parent a320db9 commit f278cb8
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
191 | 189 | | |
192 | 190 | | |
193 | 191 | | |
194 | | - | |
| 192 | + | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
284 | 282 | | |
285 | 283 | | |
286 | 284 | | |
| 285 | + | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
| |||
317 | 320 | | |
318 | 321 | | |
319 | 322 | | |
320 | | - | |
321 | | - | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
| |||
0 commit comments