winhttp: Avoid freeing potentially uninitialized context in netconn_secure_connect().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e195a9b0c3
commit
bc4edb8a70
|
@ -293,6 +293,7 @@ DWORD netconn_secure_connect( struct netconn *conn, WCHAR *hostname, DWORD secur
|
|||
|
||||
if (!(read_buf = malloc( read_buf_size ))) return ERROR_OUTOFMEMORY;
|
||||
|
||||
memset( &ctx, 0, sizeof(ctx) );
|
||||
status = InitializeSecurityContextW(cred_handle, NULL, hostname, isc_req_flags, 0, 0, NULL, 0,
|
||||
&ctx, &out_desc, &attrs, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue