summaryrefslogtreecommitdiffstats
path: root/src/file_gpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
commite1ca4010307fb53d83c5036f6c8269eb9066c928 (patch)
tree79a9547954c70be7ddc88324990d60a163ffb16d /src/file_gpg.c
parentf63304053aa32515e4853c2472fb785bcda0307c (diff)
remove always-true memcmp
Diffstat (limited to 'src/file_gpg.c')
-rw-r--r--src/file_gpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_gpg.c b/src/file_gpg.c
index daf7d45..154992e 100644
--- a/src/file_gpg.c
+++ b/src/file_gpg.c
@@ -264,7 +264,7 @@ static void file_check_gpg(file_recovery_t *file_recovery)
if(partial_body_length==0)
{
- if((buffer[i]&0x80)==0)
+ if((buffer[i]&0x80)==0)
break; /* Invalid */
tag=openpgp_packet_tag(&buffer[i]);
if((buffer[i]&0x40)==0)
@@ -431,7 +431,7 @@ static int header_check_gpg(const unsigned char *buffer, const unsigned int buff
const int old_partial_body_length=partial_body_length;
if(partial_body_length==0)
{
- if((buffer[i]&0x80)==0)
+ if((buffer[i]&0x80)==0)
break; /* Invalid */
packet_tag[nbr]=openpgp_packet_tag(&buffer[i]);
if((buffer[i]&0x40)==0)