Author: ed Date: Mon Aug 10 07:45:13 2015 New Revision: 286566 URL: https://svnweb.freebsd.org/changeset/base/286566
Log: 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 Modified: head/usr.sbin/rtsold/probe.c Modified: head/usr.sbin/rtsold/probe.c ============================================================================== --- head/usr.sbin/rtsold/probe.c Mon Aug 10 06:12:53 2015 (r286565) +++ head/usr.sbin/rtsold/probe.c Mon Aug 10 07:45:13 2015 (r286566) @@ -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; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"