summaryrefslogtreecommitdiff
path: root/ospfd/ospf_apiserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_apiserver.c')
-rw-r--r--ospfd/ospf_apiserver.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index 4f294f71..07b8f211 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -180,7 +180,7 @@ out:
void
ospf_apiserver_term (void)
{
- struct listnode *node, *nnode;
+ struct listnode *node;
struct ospf_apiserver *apiserv;
/* Unregister wildcard [0/0] type */
@@ -189,6 +189,11 @@ ospf_apiserver_term (void)
/* Free all client instances */
while ( (node = listhead (apiserver_list)) != NULL)
+ /*
+ * XXX: this is just plain odd/wrong. Is there a missing
+ * apiserv = (struct ospf_apiserver *) node;
+ * ?
+ */
ospf_apiserver_free (apiserv);
/* Free client list itself */