krb5 library uses kdc.conf when it shouldn't
authorKen Raeburn <raeburn@mit.edu>
Wed, 21 Mar 2007 04:14:02 +0000 (04:14 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 21 Mar 2007 04:14:02 +0000 (04:14 +0000)
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

src/lib/krb5/os/init_os_ctx.c

index b3d8dcf8c5e2f21500f37be661f03eb930d1aad4..88b5ed044074fbef50afbdc2e9292c3c861a0860 100644 (file)
@@ -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) {