summaryrefslogtreecommitdiff
path: root/pimd
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@tom.com>2023-09-23 20:50:30 +0800
committeranlan_cs <anlan_cs@tom.com>2023-09-23 21:06:32 +0800
commit411e16a1c7bbd21fafcd0bbd16003dae978710b4 (patch)
treefafd2e2e47946bef511f7a434d12b51519de9e8d /pimd
parenteceb1cab6d130e599d761fad2fda6a3faed51f59 (diff)
pimd: remove redundant closing socket
The socket has been closed in `ssmpingd_setsockopt()` in the wrong cases, so remove the redundant closing socket from outer layer. Signed-off-by: anlan_cs <anlan_cs@tom.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_ssmpingd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pimd/pim_ssmpingd.c b/pimd/pim_ssmpingd.c
index dadf29f535..27dbb0d6b4 100644
--- a/pimd/pim_ssmpingd.c
+++ b/pimd/pim_ssmpingd.c
@@ -185,7 +185,6 @@ static int ssmpingd_socket(pim_addr addr, int port, int mttl)
ret = ssmpingd_setsockopt(fd, addr, mttl);
if (ret) {
zlog_warn("ssmpingd_setsockopt failed");
- close(fd);
return -1;
}