Simplify KDC realm initialization slightly
authorGreg Hudson <ghudson@mit.edu>
Mon, 25 Jul 2011 15:54:26 +0000 (15:54 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 25 Jul 2011 15:54:26 +0000 (15:54 +0000)
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

index e2446cdd0a0fd9c17c633c279f23ef768e6ba00d..cc89fabe3d602000e105cd87ea21e2d1ad0ad8b9 100644 (file)
@@ -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) {