summaryrefslogtreecommitdiffstats
path: root/src/file_gsm.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_gsm.c
parentf63304053aa32515e4853c2472fb785bcda0307c (diff)
remove always-true memcmp
Diffstat (limited to 'src/file_gsm.c')
-rw-r--r--src/file_gsm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/file_gsm.c b/src/file_gsm.c
index 368fcc8..930ba91 100644
--- a/src/file_gsm.c
+++ b/src/file_gsm.c
@@ -60,7 +60,7 @@ static data_check_t data_check_gsm(const unsigned char *buffer, const unsigned i
const struct block_header *hdr=(const struct block_header *)&buffer[i];
if(hdr->marker < 0xd0 || hdr->marker > 0xdf)
return DC_STOP;
- file_recovery->calculated_file_size+=sizeof(struct block_header);
+ file_recovery->calculated_file_size+=sizeof(struct block_header);
}
return DC_CONTINUE;
}
@@ -81,7 +81,6 @@ static int header_check_gsm(const unsigned char *buffer, const unsigned int buff
}
if(i<3)
return 0;
-
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_gsm.extension;
file_recovery_new->min_filesize=sizeof(struct block_header);