return PROF_NO_RELATION, instead of an empty list.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11043
dc483132-0cff-0310-8789-
dd5450dbe970
+1998-11-17 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * prof_get.c (profile_get_values): If there are no relations
+ found, return PROF_NO_RELATION, instead of an empty list.
+
1998-11-13 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Set the myfulldir and mydir variables (which are
add_to_list(&values, value);
} while (state);
+ if (values.num == 0) {
+ retval = PROF_NO_RELATION;
+ goto cleanup;
+ }
+
end_list(&values, ret_values);
return 0;