Prior to the pluggable configuration work, profile_get_values() and
friends would return PROF_NO_PROFILE if called with a null profile.
Restore that behavior.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25044
dc483132-0cff-0310-8789-
dd5450dbe970
char *value;
struct profile_string_list values;
+ *ret_values = NULL;
+ if (!profile)
+ return PROF_NO_PROFILE;
if (profile->vt)
return get_values_vt(profile, names, ret_values);
char *value;
*ret_value = NULL;
+ if (!profile)
+ return PROF_NO_PROFILE;
if (profile->vt)
return get_value_vt(profile, names, ret_value);
errcode_t retval;
*ret_iter = NULL;
+ if (!profile)
+ return PROF_NO_PROFILE;
+
iter = malloc(sizeof(*iter));
if (iter == NULL)
return ENOMEM;