mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 00:32:34 +08:00
handle invalid PGM connection string decently
This commit is contained in:
parent
be51cfa419
commit
ed8fe68383
@ -316,6 +316,12 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_)
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
if (pgm_error->domain == PGM_TRANSPORT_ERROR && (
|
||||
pgm_error->code == PGM_TRANSPORT_ERROR_FAILED)) {
|
||||
g_error_free (pgm_error);
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
zmq_assert (false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user