From f8d4ad5352fe89dd16d28f4367c97db2dd990309 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 25 Feb 1996 21:07:18 +0000 Subject: [PATCH] * 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 --- src/kdc/ChangeLog | 5 +++++ src/kdc/main.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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); } -- 2.26.2