Commit d66e834b authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Fix a buffer size check.

parent c1733540
......@@ -992,7 +992,7 @@ static BOOL request_set_option( struct object_header *hdr, DWORD option, void *b
CertFreeCertificateContext( request->client_cert );
request->client_cert = NULL;
}
else if (buflen >= sizeof(cert))
else if (buflen >= sizeof(*cert))
{
if (!(cert = CertDuplicateCertificateContext( buffer ))) return FALSE;
CertFreeCertificateContext( request->client_cert );
......
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