Commit 30ab0ed8 authored by Doron Somech's avatar Doron Somech Committed by GitHub

Merge pull request #2615 from bluca/curve_server_reconnect

Problem: CURVE server (connect) fails when client rebinds
parents 4e6c89e3 d04065b7
......@@ -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) {
......
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