projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clear all remaining addresses on interface down
[project/netifd.git]
/
interface-ip.c
diff --git
a/interface-ip.c
b/interface-ip.c
index
20df281
..
797be58
100644
(file)
--- 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) {
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);
continue;
interface_del_address(iface, addr);