Commit d529303c authored by Dawit Alemayehu's avatar Dawit Alemayehu
Browse files

When adding a new auth item, remove all matching items instead of just one in

case duplicates exist. If duplicates are allowed to exist, then their removal
in other functions (inside of a for loop) will cause the now infamous
KIO::AuthInfo dtor crash.

CCBUG: 256712
parent 66fbe2ee
......@@ -818,7 +818,7 @@ KPasswdServer::addAuthInfoItem(const QString &key, const KIO::AuthInfo &info, ql
{
if (current->info.realmValue == info.realmValue)
{
authList->removeOne(current);
authList->removeAll(current);
break;
}
}
......
Supports Markdown
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