Problem: ZAP message without credentials is not terminated

Solution: Set more flag depending on presence of credentials
This commit is contained in:
sigiesec
2017-08-16 12:36:28 +02:00
parent b324c66b6f
commit 014b201d3e

View File

@@ -105,6 +105,7 @@ 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);
if (credentials)
msg.set_flags (msg_t::more);
rc = session->write_zap_msg (&msg);
if (rc != 0)