Skip to content

Commit

Permalink
session server ssh BUGFIX use correct timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Apr 29, 2024
1 parent 0416b66 commit 0b7e698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session_server_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ nc_accept_ssh_session_open_netconf_channel(struct nc_session *session, struct nc
}

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;
Expand Down

0 comments on commit 0b7e698

Please sign in to comment.