Commit 3aec42e2 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #1089 from jkryl/master

program dumps core when getpeername() returns EINVAL (#1085)
parents c973c985 cc4c37dc
...@@ -132,7 +132,6 @@ int zmq::get_peer_ip_address (fd_t sockfd_, std::string &ip_addr_) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment