winhttp: Avoid a crash when the connection is closed while handling a redirect.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48870
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 83afd177b3
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
15f4d9c60e
commit
dd59c1a45b
dlls/winhttp
|
@ -2739,7 +2739,7 @@ static DWORD receive_response( struct request *request, BOOL async )
|
|||
break;
|
||||
}
|
||||
|
||||
netconn_set_timeout( request->netconn, FALSE, request->receive_timeout );
|
||||
if (request->netconn) netconn_set_timeout( request->netconn, FALSE, request->receive_timeout );
|
||||
if (request->content_length) ret = refill_buffer( request, FALSE );
|
||||
|
||||
if (async)
|
||||
|
|
Loading…
Reference in New Issue