From 208fb6e96d2e4188fa495bbd6023973ff4c53b5d Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 10 Aug 2015 07:45:13 +0000 Subject: 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 --- usr.sbin/rtsold/probe.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'usr.sbin/rtsold') 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; -- cgit v1.1