* main.c (initialize_realms): missing indirection for conf_val in
authorMark Eichin <eichin@mit.edu>
Sun, 25 Feb 1996 21:07:18 +0000 (21:07 +0000)
committerMark Eichin <eichin@mit.edu>
Sun, 25 Feb 1996 21:07:18 +0000 (21:07 +0000)
alternate profile code. (This should really be in a library...)
(thanks ezra!)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7544 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/main.c

index 61be8fbd7d35e7160edae3f67c7817370d0d2c2b..2df5127543a0f20e4852af379b6c3012ac87739f 100644 (file)
@@ -1,3 +1,8 @@
+Sun Feb 25 16:04:10 1996  Mark W. Eichin  <eichin@cygnus.com>
+
+       * main.c (initialize_realms): missing indirection for conf_val in
+       alternate profile code. (This should really be in a library...)
+
 Sat Feb  3 22:37:55 1996  Mark Eichin  <eichin@cygnus.com>
 
        * network.c (add_port): sunos realloc doesn't handle a NULL
index 6391bd74d20dcfedd9e1feb6defb91ef1a16bdc2..474669ea09854bcbfaef1081e61ae38e7b227563 100644 (file)
@@ -740,8 +740,8 @@ initialize_realms(kcontext, argc, argv)
       conf_names[2] = 0;
 
       retval = profile_get_values(kcontext->profile, conf_names, &conf_val);
-      if(!retval && conf_val) {
-       db_prof = strdup(conf_val);
+      if(!retval && conf_val && conf_val[0]) {
+       db_prof = strdup(conf_val[0]);
       } else {
        db_prof = strdup(DEFAULT_KDC_PROFILE);
       }