keytab: Avoid use of signed integer as a boolean
commita3d8951df560fd1baaedd7e3392953e40ef72077
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Sep 2018 19:51:24 +0000 (17 12:51 -0700)
committerLuke Howard <lukeh@padl.com>
Thu, 20 Dec 2018 01:52:12 +0000 (20 12:52 +1100)
tree7a5f4a9b1a0d12bb7331847e8a9ae56ee0a08281
parent59aee7cad2b3fdb7fe8ddcc621e12703cdc35022
keytab: Avoid use of signed integer as a boolean

with CFLAGS="-O3 -Werror=strict-overflow -Wstrict-overflow=2"
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10) gives:

keytab_any.c: In function ‘any_remove_entry’:
keytab_any.c:241:7: warning: assuming signed overflow does not occur when simplifying conditional to constant [-Wstrict-overflow]
     if(!found)
       ^

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5/keytab_any.c