diff options
Diffstat (limited to 'src/lib/kdb')
-rw-r--r-- | src/lib/kdb/kdb5.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/kdb/kdb5.c b/src/lib/kdb/kdb5.c index 3cf116b76e..d02bb5025b 100644 --- a/src/lib/kdb/kdb5.c +++ b/src/lib/kdb/kdb5.c @@ -986,8 +986,10 @@ krb5_db_delete_principal(krb5_context kcontext, krb5_principal search_for) free(princ_name); } - if (v->delete_principal == NULL) + if (v->delete_principal == NULL) { + ulog_lock(kcontext, KRB5_LOCKMODE_UNLOCK); return KRB5_PLUGIN_OP_NOTSUPP; + } status = v->delete_principal(kcontext, search_for); |