Bug 151679. Remove reverse links when deleting a secret - fixed
This commit is contained in:
parent
ae84c5f595
commit
b740459dd1
@ -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
|
||||
|
6
c_micasad/cache/KeyChain.cs
vendored
6
c_micasad/cache/KeyChain.cs
vendored
@ -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);
|
||||
|
6
c_micasad/cache/Secret.cs
vendored
6
c_micasad/cache/Secret.cs
vendored
@ -243,12 +243,14 @@ namespace sscs.cache
|
||||
internal void RemoveAllKeyValuePairs(KeyChain kc)
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user