0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Merge pull request #3566 from TomMD/fix/leaks

Free memory when curve_client sends invalid ready message.
This commit is contained in:
Simon Giesecke 2019-07-09 09:19:24 +02:00 committed by GitHub
commit 89ac4a0f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,6 +240,7 @@ int zmq::curve_client_t::process_ready (const uint8_t *msg_data_,
session->get_socket ()->event_handshake_failed_protocol (
session->get_endpoint (), ZMQ_PROTOCOL_ERROR_ZMTP_CRYPTOGRAPHIC);
errno = EPROTO;
free (ready_plaintext);
return -1;
}