Skip to content
Snippets Groups Projects
Commit 960ac1c3 authored by rswindell's avatar rswindell
Browse files

Only warn about an invalid hash record timestamp if the time is more than an

hour in the future. This allows for small adjustments in the local system clock.
parent 6c4aac99
No related branches found
No related tags found
No related merge requests found
......@@ -897,7 +897,7 @@ int main(int argc, char **argv)
break;
if(hash.number==0 || hash.number > smb.status.last_msg)
fprintf(stderr,"\r%sInvalid message number (%u > %u)\n", beep, hash.number, smb.status.last_msg), badhash++, print_hash(&hash);
else if(hash.time < 0x40000000 || hash.time > (ulong)now)
else if(hash.time < 0x40000000 || hash.time > (ulong)now + (60 * 60))
fprintf(stderr,"\r%sInvalid time (0x%08"PRIX32")\n", beep, hash.time), badhash++, print_hash(&hash);
else if(hash.length < 1 || hash.length > 1024*1024)
fprintf(stderr,"\r%sInvalid length (%"PRIu32")\n", beep, hash.length), badhash++, print_hash(&hash);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment