wininet: Delete authorization data on unsucessful login.
This commit is contained in:
parent
3cfc7132be
commit
98fb747aa9
|
@ -3621,6 +3621,12 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders,
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!loop_next) {
|
||||
TRACE("Cleaning wrong authorization data\n");
|
||||
destroy_authinfo(lpwhr->pAuthInfo);
|
||||
lpwhr->pAuthInfo = NULL;
|
||||
}
|
||||
}
|
||||
if (dwStatusCode == HTTP_STATUS_PROXY_AUTH_REQ)
|
||||
{
|
||||
|
@ -3637,6 +3643,12 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders,
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!loop_next) {
|
||||
TRACE("Cleaning wrong proxy authorization data\n");
|
||||
destroy_authinfo(lpwhr->pProxyAuthInfo);
|
||||
lpwhr->pProxyAuthInfo = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue