mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-02 20:30:14 +01:00
Problem: free on stack variable in GSSAPI mechanism
Solution: free wrapper.value instead of wrapper.
This commit is contained in:
parent
80f4a87fb9
commit
77444e206c
@ -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
|
||||
// did not succeed?
|
||||
gss_release_buffer (&min_stat, &plaintext);
|
||||
free (wrapped);
|
||||
free (wrapped.value);
|
||||
session->get_socket ()->event_handshake_failed_protocol (
|
||||
session->get_endpoint (),
|
||||
ZMQ_PROTOCOL_ERROR_ZMTP_CRYPTOGRAPHIC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user