]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Prevent crash because nl is NULL on shutdown 13739/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 8 Jun 2023 16:03:49 +0000 (12:03 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 8 Jun 2023 16:03:49 +0000 (12:03 -0400)
commit977d7e24fff4e0eef4426bbcc32e491a60815b89
tree2a33d3bc53c67ef87929de93f6e865fa35e87dbe
parent99bd15405cbd83aea2c8f71eebeeba11f8be0ec4
zebra: Prevent crash because nl is NULL on shutdown

When shutting down the main pthread was first closing
the sockets associated with the dplane pthread and
then telling it to shutdown the pthread at a later point
in time.  This caused the dplane to crash because the nl
data has been freed already.  Change the shutdown order
to stop the dplane pthread *and* then close the sockets.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/main.c