mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
fixes bug 117507 "HTTP Authentication hangs if no username/password is entered"
r=badami@netscape.com sr=jag
This commit is contained in:
parent
4585e99647
commit
2c5dd76223
@ -1375,8 +1375,7 @@ nsHttpChannel::GetCredentials(const char *challenges,
|
||||
nsHttpAuthEntry *entry = nsnull;
|
||||
authCache->GetAuthEntryForDomain(host, port, realm.get(), &entry);
|
||||
if (entry) {
|
||||
if (!nsCRT::strcmp(user->get(), entry->User()) &&
|
||||
!nsCRT::strcmp(pass->get(), entry->Pass())) {
|
||||
if (user->Equals(entry->User()) && pass->Equals(entry->Pass())) {
|
||||
LOG(("clearing bad credentials from the auth cache\n"));
|
||||
// ok, we've already tried this user:pass combo, so clear the
|
||||
// corresponding entry from the auth cache.
|
||||
|
Loading…
x
Reference in New Issue
Block a user