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:
parent
d237165a09
commit
a1b862daec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user