commit | 44d03fd59eb7c9f83afcfbafbe014c95e0a8f539 | [log] [tgz] |
---|---|---|
author | Donald Sharp <sharpd@cumulusnetworks.com> | Tue Sep 08 15:02:07 2015 -0400 |
committer | Paul Jakma <paul@quagga.net> | Thu Sep 24 15:26:45 2015 +0100 |
tree | 2ca150c3e596814b3fcb848df872073928bf65d4 | |
parent | 26b663da7ea8a3efae816d6e7fda293bdc1082f5 [diff] |
pimd: Fix leaked fd When caling pim_sock_open if the failure cause happens, however unlikely, don't leak the fd on failure. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 41c26a8..cd8a290 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c
@@ -371,6 +371,7 @@ return -1; if (pim_socket_join(fd, qpim_all_pim_routers_addr, ifaddr, ifindex)) { + close(fd); return -2; }