From: Tom Yu Date: Thu, 10 Jul 2008 02:04:03 +0000 (+0000) Subject: Apply patch from Apple to handle missing krb5.conf for zeroconf X-Git-Tag: krb5-1.7-alpha1~603 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a8e308c6edb4af85236a97f019dda6718d76afde;p=krb5.git Apply patch from Apple to handle missing krb5.conf for zeroconf situations. ticket: 5632 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20509 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c index f0ff1370c..fbcbead12 100644 --- a/src/util/profile/prof_init.c +++ b/src/util/profile/prof_init.c @@ -34,8 +34,11 @@ profile_init(const_profile_filespec_t *files, profile_t *ret_profile) memset(profile, 0, sizeof(struct _profile_t)); profile->magic = PROF_MAGIC_PROFILE; - /* if the filenames list is not specified return an empty profile */ - if ( files ) { + /* + * If the filenames list is not specified or empty, return an empty + * profile. + */ + if ( files && !PROFILE_LAST_FILESPEC(*files) ) { for (fs = files; !PROFILE_LAST_FILESPEC(*fs); fs++) { retval = profile_open_file(*fs, &new_file); /* if this file is missing, skip to the next */