r20509@cathode-dark-space: tlyu | 2008-07-09 22:04:03 -0400
ticket: 5632
Apply patch from Apple to handle missing krb5.conf for zeroconf
situations.
ticket: 5632
version_fixed: 1.6.4
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20518
dc483132-0cff-0310-8789-
dd5450dbe970
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 */