diff options
Diffstat (limited to 'interface-ip.c')
-rw-r--r-- | interface-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c index 20df281..797be58 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -40,7 +40,7 @@ void interface_del_ctx_addr(struct interface *iface, void *ctx) struct interface_addr *addr, *tmp; list_for_each_entry_safe(addr, tmp, &iface->address, list) { - if (addr->ctx != ctx) + if (ctx && addr->ctx != ctx) continue; interface_del_address(iface, addr); |