mirror of https://github.com/FreeRDP/FreeRDP
Fixed memory leak in tls_get_channel_bindings
This commit is contained in:
parent
9c999b7135
commit
5b9b7f331b
|
@ -633,6 +633,7 @@ static SecPkgContext_Bindings* tls_get_channel_bindings(X509* cert)
|
|||
ChannelBindingToken = &((BYTE*)ChannelBindings)[ChannelBindings->dwApplicationDataOffset];
|
||||
memcpy(ChannelBindingToken, TLS_SERVER_END_POINT, PrefixLength);
|
||||
memcpy(ChannelBindingToken + PrefixLength, CertificateHash, CertificateHashLength);
|
||||
free(CertificateHash);
|
||||
return ContextBindings;
|
||||
out_free:
|
||||
free(CertificateHash);
|
||||
|
|
Loading…
Reference in New Issue