From: Todd C. Miller Date: Mon, 12 Mar 2012 23:34:19 +0000 (-0400) Subject: Fix bogus int -> bool conversion; tags can have a value of -1. X-Git-Tag: SUDO_1_8_5~1^2~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d539c606e07a299bdbf29ea0c77be88ff0fbfb3b;p=sudo Fix bogus int -> bool conversion; tags can have a value of -1. --- diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index db77ad711..66385f07a 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -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;