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

Remove ssh_errors variable.

We're carefully counting the errors, but never looking at the count.
parent 1bda5c02
No related branches found
No related tags found
No related merge requests found
Pipeline #7262 passed
...@@ -2489,7 +2489,6 @@ void output_thread(void* arg) ...@@ -2489,7 +2489,6 @@ void output_thread(void* arg)
uint buftop=0; uint buftop=0;
sbbs_t* sbbs = (sbbs_t*) arg; sbbs_t* sbbs = (sbbs_t*) arg;
uint mss=IO_THREAD_BUF_SIZE; uint mss=IO_THREAD_BUF_SIZE;
uint ssh_errors = 0;
SetThreadName("sbbs/termOutput"); SetThreadName("sbbs/termOutput");
thread_up(true /* setuid */); thread_up(true /* setuid */);
...@@ -2622,7 +2621,6 @@ void output_thread(void* arg) ...@@ -2622,7 +2621,6 @@ void output_thread(void* arg)
else { else {
if (cryptStatusError((err=cryptSetAttribute(sbbs->ssh_session, CRYPT_SESSINFO_SSH_CHANNEL, sbbs->session_channel)))) { if (cryptStatusError((err=cryptSetAttribute(sbbs->ssh_session, CRYPT_SESSINFO_SSH_CHANNEL, sbbs->session_channel)))) {
GCESSTR(err, node, sbbs->ssh_session, "setting channel"); GCESSTR(err, node, sbbs->ssh_session, "setting channel");
ssh_errors++;
sbbs->online=false; sbbs->online=false;
i=buftop-bufbot; // Pretend we sent it all i=buftop-bufbot; // Pretend we sent it all
} }
...@@ -2637,7 +2635,6 @@ void output_thread(void* arg) ...@@ -2637,7 +2635,6 @@ void output_thread(void* arg)
if(cryptStatusError((err=cryptPushData(sbbs->ssh_session, (char*)buf+bufbot, buftop-bufbot, &i)))) { if(cryptStatusError((err=cryptPushData(sbbs->ssh_session, (char*)buf+bufbot, buftop-bufbot, &i)))) {
/* Handle the SSH error here... */ /* Handle the SSH error here... */
GCESSTR(err, node, sbbs->ssh_session, "pushing data"); GCESSTR(err, node, sbbs->ssh_session, "pushing data");
ssh_errors++;
sbbs->online=false; sbbs->online=false;
i=buftop-bufbot; // Pretend we sent it all i=buftop-bufbot; // Pretend we sent it all
} }
...@@ -2651,7 +2648,6 @@ void output_thread(void* arg) ...@@ -2651,7 +2648,6 @@ void output_thread(void* arg)
GCESSTR(err, node, sbbs->ssh_session, "setting write timeout"); GCESSTR(err, node, sbbs->ssh_session, "setting write timeout");
if(cryptStatusError((err=cryptFlushData(sbbs->ssh_session)))) { if(cryptStatusError((err=cryptFlushData(sbbs->ssh_session)))) {
GCESSTR(err, node, sbbs->ssh_session, "flushing data"); GCESSTR(err, node, sbbs->ssh_session, "flushing data");
ssh_errors++;
if (err != CRYPT_ERROR_TIMEOUT) { if (err != CRYPT_ERROR_TIMEOUT) {
sbbs->online=false; sbbs->online=false;
i=buftop-bufbot; // Pretend we sent it all i=buftop-bufbot; // Pretend we sent it all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment