program dumps core when getpeername() returns EINVAL (#1085)

This commit is contained in:
Jan Kryl 2014-06-10 16:11:00 -04:00
parent c973c985fe
commit cc4c37dc62

View File

@ -132,7 +132,6 @@ int zmq::get_peer_ip_address (fd_t sockfd_, std::string &ip_addr_)
if (rc == -1) {
errno_assert (errno != EBADF &&
errno != EFAULT &&
errno != EINVAL &&
errno != ENOTSOCK);
return 0;
}