From: Alexandra Ellwood Date: Mon, 15 May 2000 22:42:19 +0000 (+0000) Subject: 2000-05-15 Alexandra Ellwood X-Git-Tag: krb5-1.3-alpha1~2118 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=70b0d28f864b291ee2f258146451015392050827;p=krb5.git 2000-05-15 Alexandra Ellwood * 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 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index eb5a2ab9e..eb11fef8d 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,9 @@ +2000-05-15 Alexandra Ellwood + * 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 * prof_get.c: diff --git a/src/util/profile/prof_get.c b/src/util/profile/prof_get.c index a7c3072a2..a013a88a5 100644 --- a/src/util/profile/prof_get.c +++ b/src/util/profile/prof_get.c @@ -304,15 +304,17 @@ profile_parse_boolean(s, ret_boolean) 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;