From: Ken Raeburn Date: Wed, 21 Mar 2007 04:14:02 +0000 (+0000) Subject: krb5 library uses kdc.conf when it shouldn't X-Git-Tag: krb5-1.7-alpha1~1247 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ef9fbf8e57171024a9385d59bcf63d9107ccb8b;p=krb5.git krb5 library uses kdc.conf when it shouldn't Don't add kdc.conf to the list of config files to use unless it's actually requested. Reported by Will Fiveash. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19239 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c index b3d8dcf8c..88b5ed044 100644 --- a/src/lib/krb5/os/init_os_ctx.c +++ b/src/lib/krb5/os/init_os_ctx.c @@ -336,7 +336,7 @@ os_init_paths(krb5_context ctx, krb5_boolean kdc) retval = os_get_default_config_files(&files, secure); - if (retval == 0) + if (retval == 0 && kdc) retval = add_kdc_config_file(&files); if (!retval) {