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>
This commit is contained in:
Hans Leidekker 2021-01-19 16:52:08 +01:00 committed by Alexandre Julliard
parent be34e08a87
commit 83afd177b3
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)