Skip to content

Commit

Permalink
Merge pull request zeromq#2615 from bluca/curve_server_reconnect
Browse files Browse the repository at this point in the history
Problem: CURVE server (connect) fails when client rebinds
  • Loading branch information
somdoron authored Jul 1, 2017
2 parents 4e6c89e + d04065b commit 30ab0ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/session_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30ab0ed

Please sign in to comment.