From 9f55ff216b6593c53c9fa72bf93b147b5a0d9c15 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 9 Nov 2022 17:33:04 +0800 Subject: [PATCH] Add check for -t -s clash multiauthmethod with noauthpass isn't allowed --- svr-runopts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/svr-runopts.c b/svr-runopts.c index da8d898..e0fe1e3 100644 --- a/svr-runopts.c +++ b/svr-runopts.c @@ -443,6 +443,10 @@ void svr_getopts(int argc, char ** argv) { } #endif + if (svr_opts.multiauthmethod && svr_opts.noauthpass) { + dropbear_exit("-t and -s are incompatible"); + } + #if DROPBEAR_PLUGIN if (pubkey_plugin) { char *args = strchr(pubkey_plugin, ',');