2000-05-15 Alexandra Ellwood <lxs@mit.edu>
authorAlexandra Ellwood <lxs@mit.edu>
Mon, 15 May 2000 22:42:19 +0000 (22:42 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Mon, 15 May 2000 22:42:19 +0000 (22:42 +0000)
* 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

src/util/profile/ChangeLog
src/util/profile/prof_get.c

index eb5a2ab9ef2839b8cfd0f1b7161c2d8aea35e320..eb11fef8dbabc7792fb0e1e35ad82d28a72b0f49 100644 (file)
@@ -1,3 +1,9 @@
+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: 
index a7c3072a22d94be34e2a16a6865a9317f9e80919..a013a88a554b26bee6dbd08dce32e9bcbbaea12e 100644 (file)
@@ -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;