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:
Hans Leidekker 2021-01-19 16:52:08 +01:00 committed by Michael Stefaniuc
parent 15f4d9c60e
commit dd59c1a45b
1 changed files with 1 additions and 1 deletions

View File

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