diff options
Diffstat (limited to 'cli-auth.c')
-rw-r--r-- | cli-auth.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -261,6 +261,9 @@ void recv_msg_userauth_success() { if DROPBEAR_CLI_IMMEDIATE_AUTH is set */ TRACE(("received msg_userauth_success")) + if (cli_opts.disable_trivial_auth && cli_ses.is_trivial_auth) { + dropbear_exit("trivial authentication not allowed"); + } /* Note: in delayed-zlib mode, setting authdone here * will enable compression in the transport layer */ ses.authstate.authdone = 1; |