From 13678f34148f91511b185ab9b7f952d4bfcf322b Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 12 Jan 2018 07:39:14 +0000
Subject: [PATCH] Default "send_files" state to FALSE rather than TRUE, so if
 no files are even attempted to be sent (e.g. there are file open failures for
 all files), then we won't call zmodem_get_zfin() - we never sent a ZINIT!
 Just return -1.

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

diff --git a/src/sbbs3/sexyz.c b/src/sbbs3/sexyz.c
index 8244227f44..33bbc4f003 100644
--- a/src/sbbs3/sexyz.c
+++ b/src/sbbs3/sexyz.c
@@ -920,7 +920,7 @@ static int send_files(char** fname, uint fnames)
 	uint		cps;
 	glob_t		g;
 	int			gi;
-	BOOL		success=TRUE;
+	BOOL		success=FALSE;
 	uint64_t	fsize;
 	uint64_t	sent_bytes;
 	uint64_t	total_bytes=0;
-- 
GitLab