mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-14 11:06:59 +01:00
Merge pull request #2090 from jolting/patch-1
[gssapi] memory allocation mismatch on windows
This commit is contained in:
commit
5d1c75f033
@ -181,7 +181,7 @@ int zmq::gssapi_mechanism_base_t::decode_message (msg_t *msg_)
|
||||
memcpy (msg_->data (), static_cast <char *> (plaintext.value)+1, plaintext.length-1);
|
||||
|
||||
gss_release_buffer (&min_stat, &plaintext);
|
||||
gss_release_buffer (&min_stat, &wrapped);
|
||||
free(wrapped.value);
|
||||
|
||||
if (bytes_left > 0) {
|
||||
errno = EPROTO;
|
||||
|
Loading…
Reference in New Issue
Block a user