mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
program dumps core when getpeername() returns EINVAL (#1085)
This commit is contained in:
parent
c973c985fe
commit
cc4c37dc62
@ -132,7 +132,6 @@ int zmq::get_peer_ip_address (fd_t sockfd_, std::string &ip_addr_)
|
|||||||
if (rc == -1) {
|
if (rc == -1) {
|
||||||
errno_assert (errno != EBADF &&
|
errno_assert (errno != EBADF &&
|
||||||
errno != EFAULT &&
|
errno != EFAULT &&
|
||||||
errno != EINVAL &&
|
|
||||||
errno != ENOTSOCK);
|
errno != ENOTSOCK);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user