0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-01 10:50:28 +08:00

Problem: log for bad ZAP status code is confusing

Solution: log that handler sent bad status code to clarify ZAP debugging
This commit is contained in:
Alain O'Dea 2017-08-10 10:42:29 -02:30
parent 82c4792e21
commit 454d1eda65
No known key found for this signature in database
GPG Key ID: FD2B21724D8CD480

View File

@ -335,7 +335,7 @@ int zmq::null_mechanism_t::receive_and_process_zap_reply ()
// Status code frame
if (msg [3].size () != 3) {
// Temporary support for security debugging
puts ("NULL I: ZAP handler rejected client authentication");
puts ("NULL I: ZAP handler sent bad status code");
errno = EPROTO;
return close_and_return (msg, -1);
}