]> git.proxmox.com Git - mirror_frr.git/commit - lib/frr_zmq.c
lib: clear caller's pointer when freeing context struct
authorMark Stapp <mjs.ietf@gmail.com>
Mon, 9 Aug 2021 15:55:15 +0000 (11:55 -0400)
committerMark Stapp <mjs.ietf@gmail.com>
Thu, 19 Aug 2021 17:31:33 +0000 (13:31 -0400)
commitcf2182c013e57fbcb98ff0f42be7f0d1542c51df
tree707cf6e6bcd5e9ab74ad46bb498c1f4156176a2a
parent1dfa8b8991153f9a0085f50aaac1f58da75164ad
lib: clear caller's pointer when freeing context struct

The zeromq lib wrapper uses an internal context struct to help
interact with the libfrr event mechanism. When freeing that
context struct, ensure the caller's pointer is also cleared.

Signed-off-by: Mark Stapp <mjs.ietf@gmail.com>
lib/frr_zmq.c