Commit fdbdd17
rootvector2
rpcapd: fix daemon_unpackapplyfilter() leak on failure paths
Free the received BPF instruction buffer through a common cleanup path when receiving instructions, validating the filter, or applying the filter fails.\n\nKeep existing daemon.c indentation style and make only the relevant CHANGES entry for this fix (Coverity CID 1641537).1 parent 726d504 commit fdbdd17
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2342 | 2342 | | |
2343 | 2343 | | |
2344 | 2344 | | |
| 2345 | + | |
2345 | 2346 | | |
2346 | 2347 | | |
2347 | 2348 | | |
| |||
2385 | 2386 | | |
2386 | 2387 | | |
2387 | 2388 | | |
2388 | | - | |
| 2389 | + | |
| 2390 | + | |
2389 | 2391 | | |
2390 | 2392 | | |
2391 | 2393 | | |
2392 | | - | |
| 2394 | + | |
| 2395 | + | |
2393 | 2396 | | |
2394 | 2397 | | |
2395 | 2398 | | |
| |||
2406 | 2409 | | |
2407 | 2410 | | |
2408 | 2411 | | |
2409 | | - | |
| 2412 | + | |
| 2413 | + | |
2410 | 2414 | | |
2411 | 2415 | | |
2412 | 2416 | | |
2413 | 2417 | | |
2414 | 2418 | | |
2415 | | - | |
| 2419 | + | |
| 2420 | + | |
2416 | 2421 | | |
2417 | 2422 | | |
2418 | | - | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
2419 | 2428 | | |
2420 | 2429 | | |
2421 | 2430 | | |
| |||
0 commit comments