summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-01-21 22:41:31 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2012-01-21 22:41:31 +0100
commitb573755df426156c22d2a4c65e3f502284820166 (patch)
treeb859ea78954b1428273e3c9428119c9c09d7cd7e /sysdep
parent544f2e1b36fb9473132f77d9c0f6e97d1495bb24 (diff)
Fixes a bug in BSD iface scan.
if_update() should be called always, because periodic iface scan code removes all not-updated ifaces.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/bsd/krt-sock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index 4bf6600d..4a91e85a 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -471,8 +471,7 @@ krt_read_ifinfo(struct ks_msg *msg)
else
f.flags |= IF_MULTIACCESS; /* NBMA */
- if((!iface) || memcmp(&f, iface, sizeof(struct iface)))
- if_update(&f); /* Just if something happens */
+ if_update(&f);
}
static void