Commit 40965e5
committed
bgpd: backpressure - Avoid use after free
Coverity complains there is a use after free (1598495 and 1598496)
At this point, most likely dest->refcount cannot go 1 and free up
the dest, but there might be some code path where this can happen.
Fixing this with a simple order change (no harm fix).
Ticket :#4001204
Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>1 parent 703beba commit 40965e5
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6339 | 6339 | | |
6340 | 6340 | | |
6341 | 6341 | | |
| 6342 | + | |
6342 | 6343 | | |
6343 | 6344 | | |
6344 | | - | |
6345 | 6345 | | |
6346 | 6346 | | |
6347 | 6347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3954 | 3954 | | |
3955 | 3955 | | |
3956 | 3956 | | |
| 3957 | + | |
3957 | 3958 | | |
3958 | 3959 | | |
3959 | | - | |
3960 | 3960 | | |
3961 | 3961 | | |
3962 | 3962 | | |
| |||
0 commit comments