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>
This commit is contained in:
anlan_cs 2023-09-23 20:50:30 +08:00
parent eceb1cab6d
commit 411e16a1c7

View file

@ -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;
}