From: Mark Eichin Date: Sun, 25 Feb 1996 21:07:18 +0000 (+0000) Subject: * main.c (initialize_realms): missing indirection for conf_val in X-Git-Tag: krb5-1.0-beta6~454 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f8d4ad5352fe89dd16d28f4367c97db2dd990309;p=krb5.git * main.c (initialize_realms): missing indirection for conf_val in 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 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 61be8fbd7..2df512754 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +Sun Feb 25 16:04:10 1996 Mark W. Eichin + + * 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 * network.c (add_port): sunos realloc doesn't handle a NULL diff --git a/src/kdc/main.c b/src/kdc/main.c index 6391bd74d..474669ea0 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -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); }