mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 07:40:02 +00:00
pimd: Fix crash on restart from thread_cancel
We were using thread_cancel() directly instead of THREAD_OFF which correctly ensures the pointer is not NULL. Ticket:CM-29866 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
c0b664a187
commit
c58a47ea2e
@ -125,7 +125,7 @@ static void zclient_lookup_failed(struct zclient *zlookup)
|
||||
|
||||
void zclient_lookup_free(void)
|
||||
{
|
||||
thread_cancel(zlookup_read);
|
||||
THREAD_OFF(zlookup_read);
|
||||
zclient_stop(zlookup);
|
||||
zclient_free(zlookup);
|
||||
zlookup = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user