Merge pull request #2615 from bluca/curve_server_reconnect

Problem: CURVE server (connect) fails when client rebinds
This commit is contained in:
Doron Somech 2017-07-01 20:54:32 +03:00 committed by GitHub
commit 30ab0ed897

View File

@ -323,7 +323,8 @@ void zmq::session_base_t::process_plug ()
// security flaw.
int zmq::session_base_t::zap_connect ()
{
zmq_assert (zap_pipe == NULL);
if (zap_pipe != NULL)
return 0;
endpoint_t peer = find_endpoint ("inproc://zeromq.zap.01");
if (peer.socket == NULL) {