summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-05 11:31:26 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-05 11:31:26 +0200
commitfd058d596d8fcbedf41d4d12263c1273f87d4285 (patch)
treebce12fb09cd1144195f0d815f9b7cffaf80c9e4a /src/file_jpg.c
parent2848eb3c13781e90cf631083f905eee70078f645 (diff)
src/file_jpg.c: Remove redundant DHT check
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index 303d27e..cf036d1 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -1774,11 +1774,6 @@ data_check_t data_check_jpg(const unsigned char *buffer, const unsigned int buff
if(jpg_check_dht(buffer, buffer_size, i, 2+size)!=0)
return DC_STOP;
}
- else if(buffer[i+1]==0xc4) /* DHT */
- {
- if(jpg_check_dht(buffer, buffer_size, i, 2+size)!=0)
- return DC_STOP;
- }
else if(buffer[i+1]==0xda) /* SOS: Start Of Scan */
{
file_recovery->data_check=&data_check_jpg2;