Skip to content
Snippets Groups Projects
Commit 4c893720 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Attempt to fix error nelgin reported with ssh session timeouts

parent d9f376f8
No related branches found
No related tags found
No related merge requests found
Pipeline #5997 passed
...@@ -1981,6 +1981,10 @@ static int crypt_pop_channel_data(sbbs_t *sbbs, char *inbuf, int want, int *got) ...@@ -1981,6 +1981,10 @@ static int crypt_pop_channel_data(sbbs_t *sbbs, char *inbuf, int want, int *got)
sbbs->sftp_channel = cid; sbbs->sftp_channel = cid;
} }
} }
if (cname && sbbs->session_channel == -1 && strcmp(cname, "shell") == 0) {
sbbs->session_channel = cid;
}
if (cid != sbbs->sftp_channel && cid != sbbs->session_channel) { if (cid != sbbs->sftp_channel && cid != sbbs->session_channel) {
lprintf(LOG_WARNING, "Node %d SSH WARNING: attempt to use channel '%s' (%d != %d or %d)" lprintf(LOG_WARNING, "Node %d SSH WARNING: attempt to use channel '%s' (%d != %d or %d)"
, sbbs->cfg.node_num, cname ? cname : "<unknown>", cid, sbbs->session_channel, sbbs->sftp_channel); , sbbs->cfg.node_num, cname ? cname : "<unknown>", cid, sbbs->session_channel, sbbs->sftp_channel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment