Skip to content

Commit b0e4d13

Browse files
committed
session server ssh BUGFIX kbdint auth NULL deref
1 parent 358a2d1 commit b0e4d13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/session_server_ssh.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,9 @@ nc_server_ssh_auth_kbdint(struct nc_session *session, int local_users_supported,
13501350
return 1;
13511351
} else if (server_opts.interactive_auth_clb) {
13521352
rc = server_opts.interactive_auth_clb(session, session->ti.libssh.session, msg, server_opts.interactive_auth_data);
1353+
} else if (!local_users_supported) {
1354+
/* no local users supported, use the system method */
1355+
rc = nc_server_ssh_auth_kbdint_system(session, msg);
13531356
} else {
13541357
/* perform the authentication based on the configured method */
13551358
if (auth_client->kbdint_method == NC_KBDINT_AUTH_METHOD_SYSTEM) {

0 commit comments

Comments
 (0)