summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ldpd/ldpe.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/ldpd/ldpe.c b/usr.sbin/ldpd/ldpe.c
index 84d61d2cf63..e97ee27fa7a 100644
--- a/usr.sbin/ldpd/ldpe.c
+++ b/usr.sbin/ldpd/ldpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpe.c,v 1.28 2015/03/21 17:33:10 renato Exp $ */
+/* $OpenBSD: ldpe.c,v 1.29 2015/03/21 18:29:22 renato Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -414,17 +414,18 @@ ldpe_dispatch_main(int fd, short event, void *bula)
break;
LIST_REMOVE(if_addr, global_entry);
+ iface = if_lookup(kaddr->ifindex);
+ if (iface) {
+ LIST_REMOVE(if_addr, iface_entry);
+ if_fsm(iface, IF_EVT_DELADDR);
+ }
+
RB_FOREACH(nbr, nbr_id_head, &nbrs_by_id) {
if (nbr->state != NBR_STA_OPER)
continue;
send_address_withdraw(nbr, if_addr);
}
- iface = if_lookup(kaddr->ifindex);
- if (iface) {
- LIST_REMOVE(if_addr, iface_entry);
- if_fsm(iface, IF_EVT_DELADDR);
- }
free(if_addr);
break;
case IMSG_RECONF_CONF: