mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
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).
This commit is contained in:
parent
2524e26893
commit
ce8fbb26cb
@ -619,6 +619,7 @@ int zmq::socket_base_t::connect (const char *addr_)
|
||||
}
|
||||
}
|
||||
if (rc == -1) {
|
||||
errno = EINVAL;
|
||||
delete paddr;
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user