Bug 151679. Remove reverse links when deleting a secret - fixed

This commit is contained in:
Jim Norman 2006-02-22 21:04:28 +00:00
parent ae84c5f595
commit b740459dd1
3 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,7 @@
-------------------------------------------------------------------
Tue Feb 22 14:03:20 MST 2006 - jnorman@novell.com
- Bug 151679. Remove reverse links when deleting a secret - fixed
-------------------------------------------------------------------
Tue Feb 22 13:33:20 MST 2006 - jnorman@novell.com
- Bug 150642. Return additional error codes when store is locked

View File

@ -118,9 +118,9 @@ class KeyChain : IKeychain
Secret secret = GetSecret(secretID);
secret.RemoveAllKeyValuePairs(this);
}
catch
catch (Exception e)
{
CSSSLogger.ExpLog(e.ToString());
}
SecretList.Remove(secretID);

View File

@ -244,11 +244,13 @@ namespace sscs.cache
{
if (htKeyValues != null)
{
IDictionaryEnumerator enumer = htKeyValues.GetEnumerator();
IDictionaryEnumerator enumer = htKeyValues.GetEnumerator();
while (enumer.MoveNext())
{
String key = (String)enumer.Key;
RemoveKeyValue(kc, key);
// refresh enumerator
enumer = htKeyValues.GetEnumerator();
}
}
}