Commit 6c35737e authored by deuce's avatar deuce
Browse files

We certainly can't re-use i for error return values when it's how many

bytes have been sent!
parent b2a5ba18
...@@ -2416,8 +2416,8 @@ void output_thread(void* arg) ...@@ -2416,8 +2416,8 @@ void output_thread(void* arg)
} }
else { else {
// READ = WRITE TIMEOUT HACK... REMOVE WHEN FIXED // READ = WRITE TIMEOUT HACK... REMOVE WHEN FIXED
if(cryptStatusError(i=cryptSetAttribute(sbbs->ssh_session, CRYPT_OPTION_NET_WRITETIMEOUT, 1))) if(cryptStatusError(err=cryptSetAttribute(sbbs->ssh_session, CRYPT_OPTION_NET_WRITETIMEOUT, 5)))
GCESS(i, sbbs->client_socket, sbbs->ssh_session, "setting write timeout"); GCESS(err, sbbs->client_socket, sbbs->ssh_session, "setting write timeout");
if(cryptStatusError((err=cryptFlushData(sbbs->ssh_session)))) { if(cryptStatusError((err=cryptFlushData(sbbs->ssh_session)))) {
GCES(err, sbbs->cfg.node_num, sbbs->ssh_session, "flushing data"); GCES(err, sbbs->cfg.node_num, sbbs->ssh_session, "flushing data");
ssh_errors++; ssh_errors++;
...@@ -2427,8 +2427,8 @@ void output_thread(void* arg) ...@@ -2427,8 +2427,8 @@ void output_thread(void* arg)
} }
} }
// READ = WRITE TIMEOUT HACK... REMOVE WHEN FIXED // READ = WRITE TIMEOUT HACK... REMOVE WHEN FIXED
if(cryptStatusError(i=cryptSetAttribute(sbbs->ssh_session, CRYPT_OPTION_NET_WRITETIMEOUT, 0))) if(cryptStatusError(err=cryptSetAttribute(sbbs->ssh_session, CRYPT_OPTION_NET_WRITETIMEOUT, 0)))
GCESS(i, sbbs->client_socket, sbbs->ssh_session, "setting write timeout"); GCESS(err, sbbs->client_socket, sbbs->ssh_session, "setting write timeout");
} }
} }
pthread_mutex_unlock(&sbbs->ssh_mutex); pthread_mutex_unlock(&sbbs->ssh_mutex);
......
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