Commit ce8fbb26 authored by Pieter Hintjens's avatar Pieter Hintjens

Problem: zmq_connect doesn't return EINVAL on invalid endpoint

Solution: set errno to EINVAL when tcp:// endpoint is invalid (was just
leaving errno to previous value).
parent 2524e268
......@@ -619,6 +619,7 @@ int zmq::socket_base_t::connect (const char *addr_)
}
}
if (rc == -1) {
errno = EINVAL;
delete paddr;
return -1;
}
......
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