* prof_get.c:
prof_parse_boolean () was missing some curly brackets
and was failing to check all the values in the list of
possible strings.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12257
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-05-15 Alexandra Ellwood <lxs@mit.edu>
+ * prof_get.c:
+ prof_parse_boolean () was missing some curly brackets
+ and was failing to check all the values in the list of
+ possible strings.
+
2000-04-03 Jeffrey Altman <jaltman@columbia.edu>
* prof_get.c:
return PROF_EINVAL;
for(p=conf_yes; *p; p++) {
- if (!strcasecmp(*p,s))
- *ret_boolean = 1;
- return 0;
+ if (!strcasecmp(*p,s)) {
+ *ret_boolean = 1;
+ return 0;
+ }
}
for(p=conf_no; *p; p++) {
- if (!strcasecmp(*p,s))
- *ret_boolean = 0;
- return 0;
+ if (!strcasecmp(*p,s)) {
+ *ret_boolean = 0;
+ return 0;
+ }
}
return PROF_BAD_BOOLEAN;