Skip to content
Snippets Groups Projects
Commit c12abf9b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Initialize sbbs_t::client and call client_on() as expected for logins

See sbbs_t::logon() for example

Note: the client.protocol is still "SSH" here (not "SFTP"). Perhaps that
should be changed?

Does any client actually support simultaneous "SSH" and "SFTP" sessions over
the same socket?
parent f3bcdb26
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -427,6 +427,9 @@ bool sbbs_t::answer() ...@@ -427,6 +427,9 @@ bool sbbs_t::answer()
mouse_mode = MOUSE_MODE_OFF; mouse_mode = MOUSE_MODE_OFF;
autoterm = 0; autoterm = 0;
sys_status |= SS_USERON; sys_status |= SS_USERON;
SAFECOPY(client.user, useron.alias);
client.usernum = useron.number;
client_on(client_socket, &client,/* update: */TRUE);
} }
else { else {
lprintf(LOG_NOTICE, "%04d Trying to create new user over sftp, disconnecting.", client_socket); lprintf(LOG_NOTICE, "%04d Trying to create new user over sftp, disconnecting.", client_socket);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment