Commit 77444e20 authored by Luca Boccassi's avatar Luca Boccassi

Problem: free on stack variable in GSSAPI mechanism

Solution: free wrapper.value instead of wrapper.
parent 80f4a87f
...@@ -186,7 +186,7 @@ int zmq::gssapi_mechanism_base_t::decode_message (msg_t *msg_) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment