mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 13:47:13 +01:00
Was sending NULL mechanism name with extra null (fixed)
This commit is contained in:
@@ -205,9 +205,9 @@ void zmq::null_mechanism_t::send_zap_request ()
|
||||
errno_assert (rc == 0);
|
||||
|
||||
// Mechanism frame
|
||||
rc = msg.init_size (5);
|
||||
rc = msg.init_size (4);
|
||||
errno_assert (rc == 0);
|
||||
memcpy (msg.data (), "NULL", 5);
|
||||
memcpy (msg.data (), "NULL", 4);
|
||||
rc = session->write_zap_msg (&msg);
|
||||
errno_assert (rc == 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user