diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-10-27 14:24:01 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-10-27 14:24:01 +0000 |
commit | 2a5ccaf5a2456e8cfc3f774df307386404bfbec3 (patch) | |
tree | 73f2ca8f5b0860aef61fac578a21370e5c34e98e /src/lib/kadm5/srv | |
parent | 8552d685d38e6d664186ac671f6bcd2269f41398 (diff) | |
download | krb5-2a5ccaf5a2456e8cfc3f774df307386404bfbec3.zip krb5-2a5ccaf5a2456e8cfc3f774df307386404bfbec3.tar.gz krb5-2a5ccaf5a2456e8cfc3f774df307386404bfbec3.tar.bz2 |
Heimdal DB bridge plugin for KDC back end
Merge Luke's users/lhoward/heimmig branch to trunk. Implements a
KDC back-end plugin which interfaces to a Heimdal HDB plugin.
ticket: 6578
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23073 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kadm5/srv')
-rw-r--r-- | src/lib/kadm5/srv/svr_principal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/kadm5/srv/svr_principal.c b/src/lib/kadm5/srv/svr_principal.c index 7ba89ec..40eea87 100644 --- a/src/lib/kadm5/srv/svr_principal.c +++ b/src/lib/kadm5/srv/svr_principal.c @@ -899,8 +899,10 @@ kadm5_get_principal(void *server_handle, krb5_principal principal, ret = KADM5_OK; done: - if (ret && entry->principal) + if (ret && entry->principal) { krb5_free_principal(handle->context, entry->principal); + entry->principal = NULL; + } kdb_free_entry(handle, &kdb, &adb); return ret; |