From 960ac1c38537f0b2bcf9f9ae0b3496dfd185d79f Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 2 Apr 2020 17:40:32 +0000
Subject: [PATCH] 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.

---
 src/sbbs3/chksmb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/chksmb.c b/src/sbbs3/chksmb.c
index 17747b915c..86286db337 100644
--- a/src/sbbs3/chksmb.c
+++ b/src/sbbs3/chksmb.c
@@ -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);
-- 
GitLab