From eecbbca4ca08e82d8cb21a981d2a836f39d17c20 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Wed, 7 Mar 2012 11:17:26 +0000 Subject: [PATCH] We must unlock before close. --- lib/kadm5/context_s.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/kadm5/context_s.c b/lib/kadm5/context_s.c index d5b9d4f25..dc858d8bd 100644 --- a/lib/kadm5/context_s.c +++ b/lib/kadm5/context_s.c @@ -73,13 +73,10 @@ kadm5_s_unlock(void *server_handle) if (!context->keep_open) return KADM5_NOT_LOCKED; - (void) context->db->hdb_close(context->context, context->db); - context->keep_open = 0; ret = context->db->hdb_unlock(context->context, context->db); - if (ret) - return ret; - return 0; + (void) context->db->hdb_close(context->context, context->db); + return ret; } static void -- 2.11.4.GIT