Commit 97cd0291 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Check the return value of send_request.

parent cd7806b2
......@@ -2314,22 +2314,17 @@ static BOOL receive_response( request_t *request, BOOL async )
if (!(ret = handle_redirect( request, status ))) break;
/* recurse synchronously */
send_request( request, NULL, 0, request->optional, request->optional_len, 0, 0, FALSE );
continue;
if ((ret = send_request( request, NULL, 0, request->optional, request->optional_len, 0, 0, FALSE ))) continue;
}
else if (status == HTTP_STATUS_DENIED || status == HTTP_STATUS_PROXY_AUTH_REQ)
{
if (request->hdr.disable_flags & WINHTTP_DISABLE_AUTHENTICATION) break;
drain_content( request );
if (!handle_authorization( request, status ))
{
ret = TRUE;
break;
}
if (!handle_authorization( request, status )) break;
/* recurse synchronously */
send_request( request, NULL, 0, request->optional, request->optional_len, 0, 0, FALSE );
continue;
if ((ret = send_request( request, NULL, 0, request->optional, request->optional_len, 0, 0, FALSE ))) continue;
}
break;
}
......
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