diff options
author | Tom Yu <tlyu@mit.edu> | 2008-07-10 02:04:03 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2008-07-10 02:04:03 +0000 |
commit | a8e308c6edb4af85236a97f019dda6718d76afde (patch) | |
tree | 1751d1f629c1789308d5884cf373c4f364a11c9a /src | |
parent | b218b3dcfa2c28ad7325d8da88f68aacb6568b92 (diff) | |
download | krb5-a8e308c6edb4af85236a97f019dda6718d76afde.tar.gz krb5-a8e308c6edb4af85236a97f019dda6718d76afde.tar.xz krb5-a8e308c6edb4af85236a97f019dda6718d76afde.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/util/profile/prof_init.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 */ |