From 2991fc79bbcb5b66247076a45586e2c0283c8056 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 23 Sep 2008 07:19:08 +0000 Subject: [PATCH] Do not resume downloads if local and remote files match. --- src/sbbs3/zmodem.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sbbs3/zmodem.c b/src/sbbs3/zmodem.c index 8c02868b45..eb4fb480dc 100644 --- a/src/sbbs3/zmodem.c +++ b/src/sbbs3/zmodem.c @@ -1848,6 +1848,10 @@ int zmodem_recv_files(zmodem_t* zm, const char* download_dir, uint32_t* bytes_re } break; } + if(l == bytes) { + lprintf(zm,LOG_ERR,"CRC, length, and filename match."); + break; + } lprintf(zm,LOG_INFO,"Resuming download of %s",fpath); } -- GitLab