Update PLAIN mechanism to the latest ZAP revision

This commit is contained in:
Martin Hurton
2013-07-18 09:49:42 +02:00
parent d65231be1c
commit 53bc53da04
4 changed files with 32 additions and 11 deletions

View File

@@ -530,7 +530,8 @@ bool zmq::stream_engine_t::handshake ()
}
else
if (memcmp (greeting_recv + 12, "PLAIN\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 20) == 0) {
mechanism = new (std::nothrow) plain_mechanism_t (session, options);
mechanism = new (std::nothrow)
plain_mechanism_t (session, peer_address, options);
alloc_assert (mechanism);
}
#ifdef HAVE_LIBSODIUM