]> git.proxmox.com Git - mirror_frr.git/commit
staticd: use double pointer for NHT decref
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 24 Apr 2022 13:52:23 +0000 (15:52 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 24 Apr 2022 15:01:16 +0000 (17:01 +0200)
commitecb490350e5a7133fe3ac71eb7f0adc3ca1ec788
treed31d82f69dcb42a73169a8a353aa8cef4a77835e
parentc68cd5af4428c810645480c3caf8688b2845b9f1
staticd: use double pointer for NHT decref

Since this is a free()-type function, clear the caller's pointer to
NULL to aid static analysis and prevent UAF bugs.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
staticd/static_zebra.c