mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-02 05:46:24 +01:00
Problem: free on stack variable in GSSAPI mechanism
Solution: free wrapper.value instead of wrapper.
This commit is contained in:
@@ -186,7 +186,7 @@ int zmq::gssapi_mechanism_base_t::decode_message (msg_t *msg_)
|
|||||||
// TODO is it correct to release the plaintext buffer if gss_unwrap
|
// TODO is it correct to release the plaintext buffer if gss_unwrap
|
||||||
// did not succeed?
|
// did not succeed?
|
||||||
gss_release_buffer (&min_stat, &plaintext);
|
gss_release_buffer (&min_stat, &plaintext);
|
||||||
free (wrapped);
|
free (wrapped.value);
|
||||||
session->get_socket ()->event_handshake_failed_protocol (
|
session->get_socket ()->event_handshake_failed_protocol (
|
||||||
session->get_endpoint (),
|
session->get_endpoint (),
|
||||||
ZMQ_PROTOCOL_ERROR_ZMTP_CRYPTOGRAPHIC);
|
ZMQ_PROTOCOL_ERROR_ZMTP_CRYPTOGRAPHIC);
|
||||||
|
|||||||
Reference in New Issue
Block a user