forked from Mirror/frr
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:
parent
eceb1cab6d
commit
411e16a1c7
|
@ -185,7 +185,6 @@ static int ssmpingd_socket(pim_addr addr, int port, int mttl)
|
||||||
ret = ssmpingd_setsockopt(fd, addr, mttl);
|
ret = ssmpingd_setsockopt(fd, addr, mttl);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
zlog_warn("ssmpingd_setsockopt failed");
|
zlog_warn("ssmpingd_setsockopt failed");
|
||||||
close(fd);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue