]> granicus.if.org Git - sudo/commitdiff
Fix bogus int -> bool conversion; tags can have a value of -1.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 12 Mar 2012 23:34:19 +0000 (19:34 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 12 Mar 2012 23:34:19 +0000 (19:34 -0400)
plugins/sudoers/parse.c

index db77ad711b971e9c0f6d9edc6e5181d6a84ff7b2..66385f07a8768989c1ff7f1ba0b85e3e199bc6cc 100644 (file)
@@ -169,7 +169,7 @@ sudo_file_lookup(struct sudo_nss *nss, int validated, int pwflag)
      * Always check the host and user.
      */
     if (pwflag) {
-       bool nopass;
+       int nopass;
        enum def_tuple pwcheck;
 
        pwcheck = (pwflag == -1) ? never : sudo_defs_table[pwflag].sd_un.tuple;