fixes bug 117507 "HTTP Authentication hangs if no username/password is entered"

r=badami@netscape.com sr=jag
This commit is contained in:
darin%netscape.com 2002-01-11 20:33:03 +00:00
Родитель 6d085a53be
Коммит 443bc5c268
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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.