From 2955c955acc8fc510c6183b92fb8ca1b29b823e2 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 20 Jan 2010 11:48:24 -0500 Subject: Stop looking when removing entries from a keytab. keytab entries are locked when looping. Temporarily suspend the looping. --- ipa-client/ipa-rmkeytab.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipa-client/ipa-rmkeytab.c') diff --git a/ipa-client/ipa-rmkeytab.c b/ipa-client/ipa-rmkeytab.c index 245c9f2d..62480474 100644 --- a/ipa-client/ipa-rmkeytab.c +++ b/ipa-client/ipa-rmkeytab.c @@ -117,6 +117,11 @@ remove_realm(krb5_context context, krb5_keytab ktid, const char *realm, int debu } + /* keytab entries are locked when looping. Temporarily suspend + * the looping. */ + krb5_kt_end_seq_get(context, ktid, &kt_cursor); + + /* keytab entries are locked when looping. Temporarily suspend * the looping. */ krb5_kt_end_seq_get(context, ktid, &kt_cursor); -- cgit