bug 245813 stop overwhelming number of master password prompts if trying to cancel out, r=timeless, sr=brendan

This commit is contained in:
dveditz%cruzio.com 2004-06-15 21:49:59 +00:00
parent cea7464dec
commit bf080b9ed2

View File

@ -224,8 +224,10 @@ nsPasswordManager::FindPasswordEntry
// Emumerate through set of saved logins
while (hasMoreElements) {
rv = enumerator->GetNext(getter_AddRefs(passwordElem));
if (NS_FAILED(rv))
return rv;
if (NS_SUCCEEDED(rv) && passwordElem) {
if (passwordElem) {
// Get the contents of this saved login
nsCAutoString hostURI;