From 411e16a1c7bbd21fafcd0bbd16003dae978710b4 Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Sat, 23 Sep 2023 20:50:30 +0800 Subject: [PATCH] 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 --- pimd/pim_ssmpingd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/pimd/pim_ssmpingd.c b/pimd/pim_ssmpingd.c index dadf29f5353a..27dbb0d6b4e8 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; }