Drop has_sendmsg flag

This commit is contained in:
Corinna Vinschen
2015-12-15 15:01:01 +01:00
parent aacc4f63d0
commit 222e412f8d
3 changed files with 1 additions and 11 deletions

View File

@ -1979,8 +1979,7 @@ fhandler_socket::sendmsg (const struct msghdr *msg, int flags)
}
/* Disappointing but true: Even if WSASendMsg is supported, it's only
supported for datagram and raw sockets. */
DWORD controllen = (DWORD) (!wincap.has_sendmsg ()
|| get_socket_type () == SOCK_STREAM
DWORD controllen = (DWORD) (get_socket_type () == SOCK_STREAM
|| get_addr_family () == AF_LOCAL
? 0 : msg->msg_controllen);
WSAMSG wsamsg = { msg->msg_name ? (struct sockaddr *) &sst : NULL, len,