Problem: curve_client_t does not emit handshake failure events

Solution: add handshake failure events to curve_client_t
This commit is contained in:
sigiesec
2017-08-17 18:32:44 +02:00
parent 9bec68354c
commit e22ca065d6
5 changed files with 61 additions and 4 deletions

View File

@@ -685,7 +685,8 @@ bool zmq::stream_engine_t::handshake ()
mechanism = new (std::nothrow)
curve_server_t (session, peer_address, options);
else
mechanism = new (std::nothrow) curve_client_t (options);
mechanism =
new (std::nothrow) curve_client_t (session, options);
alloc_assert (mechanism);
}
#endif