]> git.proxmox.com Git - mirror_frr.git/commit
zebra: fix use after free on RIB processing
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 16 Jan 2023 20:40:54 +0000 (17:40 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 16 Jan 2023 20:40:54 +0000 (17:40 -0300)
commite96817f8771164e68bd591d57bdbf819a0286d8d
tree88e99025d656170d28d65274b5be9d0b9cc6a570
parent2273550f04a8255ea6df76c0aa8952eb85a01a84
zebra: fix use after free on RIB processing

After calling `rib_unlink` the variable `re` will point to `free()`d
memory, so don't attempt to use it after this point.

Found by Coverity Scan (Coverity ID 1519784)

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
zebra/zebra_rib.c