summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/client.c b/client.c
index 5493d84..687bdcf 100644
--- a/client.c
+++ b/client.c
@@ -142,11 +142,7 @@ int handle_acktunnel_frame(protocol_frame *rcvd_frame)
142 return -1; 142 return -1;
143 } 143 }
144 144
145 tun = tunnel_create( 145 tun = tunnel_create(client_tunnel.sockfd, rcvd_frame->connid, rcvd_frame->friendnumber);
146 client_tunnel.sockfd,
147 rcvd_frame->connid,
148 rcvd_frame->friendnumber
149 );
150 146
151 /* Mark that we can accept() another connection */ 147 /* Mark that we can accept() another connection */
152 client_tunnel.sockfd = -1; 148 client_tunnel.sockfd = -1;
@@ -438,11 +434,7 @@ int do_client_loop(uint8_t *tox_id_str)
438 434
439 /* Open a new tunnel for this FD */ 435 /* Open a new tunnel for this FD */
440 client_tunnel.sockfd = accept_fd; 436 client_tunnel.sockfd = accept_fd;
441 send_tunnel_request_packet( 437 send_tunnel_request_packet(remote_host, remote_port, friendnumber);
442 remote_host,
443 remote_port,
444 friendnumber
445 );
446 } 438 }
447 } 439 }
448 440