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
+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
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);
}