From 8f9d12c3bca20ab46ef469548f7558790fb9c884 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Wed, 17 Jan 2024 20:37:23 -0500
Subject: [PATCH] Whoops, missed this bit.

Just running git commit --amend doesn't do -a it seems. :)
---
 src/sbbs3/answer.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/sbbs3/answer.cpp b/src/sbbs3/answer.cpp
index 9049256e1e..9420a6548b 100644
--- a/src/sbbs3/answer.cpp
+++ b/src/sbbs3/answer.cpp
@@ -319,6 +319,16 @@ bool sbbs_t::answer()
 			lprintf(LOG_DEBUG, "%04d SSH [%s] term: %s", client_socket, client.addr, terminal);
 		}
 		pthread_mutex_unlock(&ssh_mutex);
+
+		if(REALSYSOP && (cfg.sys_misc&SM_SYSPASSLOGIN) && (cfg.sys_misc&SM_R_SYSOP)) {
+			rioctl(IOFI);       /* flush input buffer */
+			if(!chksyspass()) {
+				bputs(text[InvalidLogon]);
+				hangup();
+				useron.number=0;
+				return(false);
+			}
+		}
 	}
 #endif
 
-- 
GitLab