Fixed memory leak in tls_get_channel_bindings

This commit is contained in:
Armin Novak 2020-02-18 13:22:04 +01:00 committed by akallabeth
parent 9c999b7135
commit 5b9b7f331b
1 changed files with 1 additions and 0 deletions

View File

@ -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);