summaryrefslogtreecommitdiff
path: root/ldpd/interface.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-10-06 17:50:19 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-10-06 17:50:19 -0300
commit11bf8e13f2034634601ba1fb43114164e71c71fe (patch)
tree91a7324c8d3a96c2a10254f6f91ac99b50b43d2f /ldpd/interface.c
parent3782fb37b1c480f2a1c3811fb703bdd5981ca60a (diff)
ldpd: sprinkle in some asserts to make scan-build happy
While here, fix the other SA warnings. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/interface.c')
-rw-r--r--ldpd/interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldpd/interface.c b/ldpd/interface.c
index a18019c0c1..bbcea9f553 100644
--- a/ldpd/interface.c
+++ b/ldpd/interface.c
@@ -103,6 +103,7 @@ ldpe_if_exit(struct iface *iface)
while ((if_addr = LIST_FIRST(&iface->addr_list)) != NULL) {
LIST_REMOVE(if_addr, entry);
+ assert(if_addr != LIST_FIRST(&iface->addr_list));
free(if_addr);
}
}