Implement ZAP for NULL mechanism

This commit is contained in:
Martin Hurton
2013-07-18 10:10:10 +02:00
parent 53bc53da04
commit 4a5358f4d0
3 changed files with 169 additions and 5 deletions

View File

@@ -525,7 +525,8 @@ bool zmq::stream_engine_t::handshake ()
alloc_assert (decoder);
if (memcmp (greeting_recv + 12, "NULL\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 20) == 0) {
mechanism = new (std::nothrow) null_mechanism_t (options);
mechanism = new (std::nothrow)
null_mechanism_t (session, peer_address, options);
alloc_assert (mechanism);
}
else