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

Guard against answer() being called before the first channel is created.

In this case, just accept whatever we get info on as the "first" one.

Likely fixes #728
parent 8c7dec35
No related branches found
No related tags found
No related merge requests found
Pipeline #6002 passed
......@@ -446,6 +446,8 @@ bool sbbs_t::answer()
}
if (cryptStatusOK(i)) {
i=cryptGetAttribute(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL, &ccid);
if (cid == -1)
cid = ccid;
if (cryptStatusOK(i) && ccid != cid)
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment