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
This commit is contained in:
Ed Schouten 2015-08-10 07:45:13 +00:00
parent d237165a09
commit a1b862daec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286566

View file

@ -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;