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
|
Tue Feb 22 13:33:20 MST 2006 - jnorman@novell.com
|
||||||
- Bug 150642. Return additional error codes when store is locked
|
- 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 secret = GetSecret(secretID);
|
||||||
secret.RemoveAllKeyValuePairs(this);
|
secret.RemoveAllKeyValuePairs(this);
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
CSSSLogger.ExpLog(e.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
SecretList.Remove(secretID);
|
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)
|
internal void RemoveAllKeyValuePairs(KeyChain kc)
|
||||||
{
|
{
|
||||||
if (htKeyValues != null)
|
if (htKeyValues != null)
|
||||||
{
|
{
|
||||||
IDictionaryEnumerator enumer = htKeyValues.GetEnumerator();
|
IDictionaryEnumerator enumer = htKeyValues.GetEnumerator();
|
||||||
while (enumer.MoveNext())
|
while (enumer.MoveNext())
|
||||||
{
|
{
|
||||||
String key = (String)enumer.Key;
|
String key = (String)enumer.Key;
|
||||||
RemoveKeyValue(kc, key);
|
RemoveKeyValue(kc, key);
|
||||||
|
// refresh enumerator
|
||||||
|
enumer = htKeyValues.GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user