summaryrefslogtreecommitdiffstats
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_pim.c')
-rw-r--r--pimd/pim_pim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c
index 41c26a88..cd8a2903 100644
--- a/pimd/pim_pim.c
+++ b/pimd/pim_pim.c
@@ -371,6 +371,7 @@ static int pim_sock_open(struct in_addr ifaddr, int ifindex)
return -1;
if (pim_socket_join(fd, qpim_all_pim_routers_addr, ifaddr, ifindex)) {
+ close(fd);
return -2;
}