We must unlock before close.

This commit is contained in:
Roland C. Dowdeswell
2012-03-07 11:17:26 +00:00
parent a20fe9b0ad
commit 92b243a638

View File

@@ -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