diff options
Diffstat (limited to 'sysdep/bsd/krt-sock.c')
-rw-r--r-- | sysdep/bsd/krt-sock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index a0f6a7cb..923001bf 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -242,6 +242,7 @@ krt_send_route(struct krt_proto *p, int cmd, const rte *e) */ if (!i) { + IFACE_LOCK; WALK_LIST(j, global_iface_list) { if (j->flags & IF_LOOPBACK) @@ -250,6 +251,7 @@ krt_send_route(struct krt_proto *p, int cmd, const rte *e) break; } } + IFACE_UNLOCK; if (!i) { |