Commit 1f3dbcd
committed
log_server_accept: audit_details cannot be a local variable.
This reverts part of f278cb8.
Because log_server_open() stores audit_details in the closure
it needs to have global scope. Also add audit_details_free()
to free the only dynamically allocated part of audit_details.
This makes things a bit more consistent with similar code in iolog.c.
Found by Joshua Rogers using the ZeroPath tool.1 parent c488119 commit 1f3dbcd
1 file changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
244 | 257 | | |
245 | 258 | | |
246 | 259 | | |
| |||
272 | 285 | | |
273 | 286 | | |
274 | 287 | | |
275 | | - | |
276 | | - | |
| 288 | + | |
277 | 289 | | |
278 | 290 | | |
279 | 291 | | |
280 | 292 | | |
281 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
282 | 298 | | |
283 | 299 | | |
284 | 300 | | |
| |||
287 | 303 | | |
288 | 304 | | |
289 | 305 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | 306 | | |
294 | 307 | | |
295 | 308 | | |
| |||
320 | 333 | | |
321 | 334 | | |
322 | 335 | | |
| 336 | + | |
323 | 337 | | |
324 | 338 | | |
325 | 339 | | |
| |||
0 commit comments