SSH Agent: Always forget all keys on lock

Fixes #5016.
This commit is contained in:
Toni Spets 2020-07-17 19:16:24 +03:00 committed by Jonathan White
parent 7c39907251
commit 747be8d629

View file

@ -447,12 +447,8 @@ void SSHAgent::databaseLocked()
if (!removeIdentity(key)) { if (!removeIdentity(key)) {
emit error(m_error); emit error(m_error);
} }
it = m_addedKeys.erase(it);
} else {
// don't remove it yet
m_addedKeys[key].second = false;
++it;
} }
it = m_addedKeys.erase(it);
} }
} }