mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-08 06:42:57 +01:00
Problem: ZAP message without credentials is not terminated
Solution: Set more flag depending on presence of credentials
This commit is contained in:
@@ -105,7 +105,8 @@ int zap_client_t::send_zap_request (const char *mechanism,
|
||||
rc = msg.init_size (mechanism_length);
|
||||
errno_assert (rc == 0);
|
||||
memcpy (msg.data (), mechanism, mechanism_length);
|
||||
msg.set_flags (msg_t::more);
|
||||
if (credentials)
|
||||
msg.set_flags (msg_t::more);
|
||||
rc = session->write_zap_msg (&msg);
|
||||
if (rc != 0)
|
||||
return close_and_return (&msg, -1);
|
||||
|
||||
Reference in New Issue
Block a user