Commit 83afd177 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Avoid a crash when the connection is closed while handling a redirect.

parent be34e08a
...@@ -2739,7 +2739,7 @@ static DWORD receive_response( struct request *request, BOOL async ) ...@@ -2739,7 +2739,7 @@ static DWORD receive_response( struct request *request, BOOL async )
break; 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 (request->content_length) ret = refill_buffer( request, FALSE );
if (async) if (async)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment