Add check for -t -s clash

multiauthmethod with noauthpass isn't allowed
This commit is contained in:
Matt Johnston 2022-11-09 17:33:04 +08:00
parent 427e49003a
commit 9f55ff216b

View File

@ -443,6 +443,10 @@ void svr_getopts(int argc, char ** argv) {
} }
#endif #endif
if (svr_opts.multiauthmethod && svr_opts.noauthpass) {
dropbear_exit("-t and -s are incompatible");
}
#if DROPBEAR_PLUGIN #if DROPBEAR_PLUGIN
if (pubkey_plugin) { if (pubkey_plugin) {
char *args = strchr(pubkey_plugin, ','); char *args = strchr(pubkey_plugin, ',');