Commit 635a03d2 authored by Pieter Hintjens's avatar Pieter Hintjens

Was sending NULL mechanism name with extra null (fixed)

parent 4c753060
...@@ -205,9 +205,9 @@ void zmq::null_mechanism_t::send_zap_request () ...@@ -205,9 +205,9 @@ void zmq::null_mechanism_t::send_zap_request ()
errno_assert (rc == 0); errno_assert (rc == 0);
// Mechanism frame // Mechanism frame
rc = msg.init_size (5); rc = msg.init_size (4);
errno_assert (rc == 0); errno_assert (rc == 0);
memcpy (msg.data (), "NULL", 5); memcpy (msg.data (), "NULL", 4);
rc = session->write_zap_msg (&msg); rc = session->write_zap_msg (&msg);
errno_assert (rc == 0); errno_assert (rc == 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment