Pārlūkot izejas kodu

- even more tcp fixes

Andrei Pelinescu-Onciul 22 gadi atpakaļ
vecāks
revīzija
7825b469e5
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      tcp_main.c

+ 1 - 0
tcp_main.c

@@ -284,6 +284,7 @@ no_id:
 			response[1]=CONN_NEW;
 			response[1]=CONN_NEW;
 			n=write(unix_tcp_sock, response, sizeof(response));
 			n=write(unix_tcp_sock, response, sizeof(response));
 			n=send_fd(unix_tcp_sock, &c, sizeof(c), c->s);
 			n=send_fd(unix_tcp_sock, &c, sizeof(c), c->s);
+			fd=c->s;
 			goto send_it;
 			goto send_it;
 		}
 		}
 get_fd:
 get_fd: