diff options
| author | Mitesh Kanjariya <mitesh@cumulusnetworks.com> | 2018-02-27 02:47:36 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-27 02:47:36 -0800 |
| commit | 00cbfad6de99dd70df21cb43f624e364eb0d0f02 (patch) | |
| tree | 2b10d7793db2b0ee4ba6e06811348cf1c61578d5 /lib/ns.c | |
| parent | f487dcaf74c9bd7a716a749d15281d5b92d363d4 (diff) | |
| parent | ac3133a35d340a765be1518c2669b979e39fbe66 (diff) | |
Merge branch 'master' into evpn-bug-fixes
Diffstat (limited to 'lib/ns.c')
| -rw-r--r-- | lib/ns.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -424,8 +424,11 @@ void ns_terminate(void) { struct ns *ns; - while ((ns = RB_ROOT(ns_head, &ns_tree)) != NULL) + while (!RB_EMPTY(ns_head, &ns_tree)) { + ns = RB_ROOT(ns_head, &ns_tree); + ns_delete(ns); + } } /* Create a socket for the NS. */ |
