From 134b3568249d3cda1050be34474b5c54dc7598f2 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 25 Jul 2011 15:54:26 +0000 Subject: [PATCH] Simplify KDC realm initialization slightly krb5_aprof_init() can no longer return 0 with a null profile, so we can call krb5_aprof_finish() unconditionally. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25043 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kdc/main.c b/src/kdc/main.c index e2446cdd0..cc89fabe3 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -701,9 +701,7 @@ initialize_realms(krb5_context kcontext, int argc, char **argv) host_based_srvcs = 0; } - /* aprof_init can return 0 with aprof == NULL */ - if (aprof) - krb5_aprof_finish(aprof); + krb5_aprof_finish(aprof); } if (default_udp_ports == 0) { -- 2.26.2