summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ndp.c')
-rw-r--r--src/ndp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ndp.c b/src/ndp.c
index c6e4eda..427547d 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -539,13 +539,17 @@ static void catch_rtnl_err(struct odhcpd_event *e, int error)
struct event_socket *ev_sock = container_of(e, struct event_socket, ev);
if (error != ENOBUFS)
- return;
+ goto err;
/* Double netlink event buffer size */
ev_sock->sock_bufsize *= 2;
if (nl_socket_set_buffer_size(ev_sock->sock, ev_sock->sock_bufsize, 0))
- return;
+ goto err;
dump_addr_table();
+ return;
+
+err:
+ odhcpd_deregister(e);
}