Skip to content

Commit

Permalink
pimd: remove redundant closing socket
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anlancs committed Sep 23, 2023
1 parent eceb1ca commit 411e16a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pimd/pim_ssmpingd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 411e16a

Please sign in to comment.