]> granicus.if.org Git - mutt/commit
Fix comparison of flags with multiple bits set.
authorKevin McCarthy <kevin@8t8.us>
Fri, 23 Mar 2018 03:04:46 +0000 (20:04 -0700)
committerKevin McCarthy <kevin@8t8.us>
Fri, 23 Mar 2018 03:04:46 +0000 (20:04 -0700)
commit47e6c5aac5200582600cc0823191bb3bc7799daf
tree2811b206fc3025655c5cc5349ad93e02ddf71220
parent66063c4531b93cd955784f8085c42d8c99304139
Fix comparison of flags with multiple bits set.

PGPENCRYPT, PGPKEY, SMIMEENCRYPT, and SMIMEOPAQUE are all combination
flags, with multiple bits set.  In a few places these flags were
bitwise-and'ed incorrectly: expecting a non-zero result to indicate
all the bits in the flag were set.  Change those to explicitly compare
the result against the original flag.
hdrline.c
pattern.c
recvattach.c
sendlib.c