summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-08-21 17:25:48 -0400
committerAndrew Cady <d@jerkface.net>2020-08-21 17:25:48 -0400
commit0a9ce77c015d5aba4e22ac39aa17f00dcb65bdaf (patch)
treea499c45b3425df056492445d4fcec288f2e87f21
parentb9470442a3199a58b1665350ec0d285ca169167c (diff)
It's fixed!
-rw-r--r--client.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/client.c b/client.c
index 2879f40..5493d84 100644
--- a/client.c
+++ b/client.c
@@ -384,10 +384,11 @@ int do_client_loop(uint8_t *tox_id_str)
384 log_printf(L_ERROR, "Shutting down - could not bind to listening port\n"); 384 log_printf(L_ERROR, "Shutting down - could not bind to listening port\n");
385 exit(1); 385 exit(1);
386 } 386 }
387 client_tunnel.sockfd = 0;
387 /* fall through... */ 388 /* fall through... */
388 case Mode_Client_Pipe: 389 case Mode_Client_Pipe:
389 send_tunnel_request_packet(remote_host, remote_port, friendnumber); 390 send_tunnel_request_packet(remote_host, remote_port, friendnumber);
390 state = CLIENT_STATE_WAIT_FOR_ACKTUNNEL; 391 state = CLIENT_STATE_FORWARDING;
391 break; 392 break;
392 default: 393 default:
393 log_printf(L_ERROR, "BUG: Impossible client mode at %s:%s", __FILE__, __LINE__); 394 log_printf(L_ERROR, "BUG: Impossible client mode at %s:%s", __FILE__, __LINE__);
@@ -416,10 +417,6 @@ int do_client_loop(uint8_t *tox_id_str)
416 case CLIENT_STATE_PING_SENT: 417 case CLIENT_STATE_PING_SENT:
417 /* Just sit there and wait for pong */ 418 /* Just sit there and wait for pong */
418 break; 419 break;
419 case CLIENT_STATE_WAIT_FOR_ACKTUNNEL:
420 /* client_tunnel.sockfd = 0; */
421 /* send_tunnel_request_packet(remote_host, remote_port, friendnumber); */
422 break;
423 case CLIENT_STATE_FORWARDING: 420 case CLIENT_STATE_FORWARDING:
424 { 421 {
425 int accept_fd = 0; 422 int accept_fd = 0;