commit | 0b7e698dc99fb34fbaf6cfdb30912248b9b16f38 | [log] [tgz] |
---|---|---|
author | roman <xjanot04@fit.vutbr.cz> | Mon Apr 29 11:11:52 2024 +0200 |
committer | roman <xjanot04@fit.vutbr.cz> | Mon Apr 29 11:11:52 2024 +0200 |
tree | d2d13726972524ff93f4fd84e2df02d2e523372a | |
parent | 0416b66b5540e8f38e991c2cb2d92bbc48ebb1b5 [diff] [blame] |
session server ssh BUGFIX use correct timeout
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c index c8386bc..e73dfe2 100644 --- a/src/session_server_ssh.c +++ b/src/session_server_ssh.c
@@ -1583,7 +1583,7 @@ } usleep(NC_TIMEOUT_STEP); - if (opts->auth_timeout && (nc_timeouttime_cur_diff(&ts_timeout) < 1)) { + if (timeout && (nc_timeouttime_cur_diff(&ts_timeout) < 1)) { /* timeout */ ERR(session, "Failed to start \"netconf\" SSH subsystem for too long, disconnecting."); break;