summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-09-24 00:43:43 +0200
committerGitHub <noreply@github.com>2023-09-24 00:43:43 +0200
commit9d9c6dc01e0d1b97303796e1c167a060102eba10 (patch)
tree4976493c86d81e468d80cf9baffac4a6c5badfce
parentMerge pull request #14475 from opensourcerouting/fix/unset_per_afi_stuff_when... (diff)
parentpimd: remove redundant closing socket (diff)
downloadfrr-9d9c6dc01e0d1b97303796e1c167a060102eba10.tar.xz
frr-9d9c6dc01e0d1b97303796e1c167a060102eba10.zip
Merge pull request #14476 from anlancs/fix/pimd-remove-fd-close
pimd: remove redundant closing socket
-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 dadf29f53..27dbb0d6b 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;
}