We must unlock before close.
This commit is contained in:
@@ -73,13 +73,10 @@ kadm5_s_unlock(void *server_handle)
|
|||||||
if (!context->keep_open)
|
if (!context->keep_open)
|
||||||
return KADM5_NOT_LOCKED;
|
return KADM5_NOT_LOCKED;
|
||||||
|
|
||||||
(void) context->db->hdb_close(context->context, context->db);
|
|
||||||
|
|
||||||
context->keep_open = 0;
|
context->keep_open = 0;
|
||||||
ret = context->db->hdb_unlock(context->context, context->db);
|
ret = context->db->hdb_unlock(context->context, context->db);
|
||||||
if (ret)
|
(void) context->db->hdb_close(context->context, context->db);
|
||||||
return ret;
|
return ret;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user