winhttp: Fix a buffer size check.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c1733540d6
commit
d66e834bfd
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue