Commit 3b397c05 authored by rswindell's avatar rswindell
Browse files

Make absolutely sure that useron.number is 0 if answer() returns without

logging in a user. Apparently it's possible to disconnect during an SSH login
and have this function return with useron.number set to a valid user number
even though there was no successful login, leading to undesireable things
happening in logout().
parent 1f39f430
......@@ -369,8 +369,10 @@ bool sbbs_t::answer()
if(!online) {
if(stricmp(terminal,"sexpots")==0) { /* dial-up connection (via SexPOTS) */
SAFEPRINTF2(str,"%s connection detected at %lu bps", terminal, cur_rate);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment