summaryrefslogtreecommitdiff
path: root/sysdep/unix/io-loop.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-10-04 13:20:04 +0200
committerMaria Matejka <mq@ucw.cz>2022-10-05 16:33:34 +0200
commit4d687d7aecb2bc4b695d26418bc761acb1d15c76 (patch)
tree1f2ff2842dd2902fc52b635df784aadd1edafe76 /sysdep/unix/io-loop.c
parent1e01721525032bf3608aa457cafde58543b8a977 (diff)
Fixed previously untested paths in RPKI
Diffstat (limited to 'sysdep/unix/io-loop.c')
-rw-r--r--sysdep/unix/io-loop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c
index dbca36e9..b588b736 100644
--- a/sysdep/unix/io-loop.c
+++ b/sysdep/unix/io-loop.c
@@ -252,6 +252,9 @@ sk_start(sock *s)
static void
sockets_remove(struct birdloop *loop, sock *s)
{
+ if (!enlisted(&s->n))
+ return;
+
rem_node(&s->n);
loop->sock_num--;