summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtsold
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-08-10 07:45:13 +0000
committered <ed@FreeBSD.org>2015-08-10 07:45:13 +0000
commit208fb6e96d2e4188fa495bbd6023973ff4c53b5d (patch)
treefdac5fbf52a5c84cae470f7850ff865e7cc1f869 /usr.sbin/rtsold
parentdcacb16d6a14cd98f2db175b38e92626140a361c (diff)
downloadFreeBSD-src-208fb6e96d2e4188fa495bbd6023973ff4c53b5d.zip
FreeBSD-src-208fb6e96d2e4188fa495bbd6023973ff4c53b5d.tar.gz
Remove bad call to shutdown().
The socket created by rtsol/rtsold is not a connection-based socket, meaning that we should not attempt to call shutdown() on it. Reported by: kan
Diffstat (limited to 'usr.sbin/rtsold')
-rw-r--r--usr.sbin/rtsold/probe.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/usr.sbin/rtsold/probe.c b/usr.sbin/rtsold/probe.c
index 89a1617a..3aa5303 100644
--- a/usr.sbin/rtsold/probe.c
+++ b/usr.sbin/rtsold/probe.c
@@ -80,12 +80,6 @@ probe_init(void)
return (-1);
}
- /* make the socket send-only */
- if (shutdown(probesock, 0)) {
- warnmsg(LOG_ERR, __func__, "shutdown: %s", strerror(errno));
- return (-1);
- }
-
/* initialize msghdr for sending packets */
sndmhdr.msg_namelen = sizeof(struct sockaddr_in6);
sndmhdr.msg_iov = sndiov;
OpenPOWER on IntegriCloud