Pass index into listen_socket[] to handle_incoming_vpn_data().
This commit is contained in:
parent
65e8e06c6d
commit
8e717ddb60
2 changed files with 2 additions and 2 deletions
|
|
@ -610,7 +610,7 @@ void handle_incoming_vpn_data(int sock) {
|
|||
socklen_t fromlen = sizeof(from);
|
||||
node_t *n;
|
||||
|
||||
pkt.len = recvfrom(sock, (char *) &pkt.seqno, MAXSIZE, 0, &from.sa, &fromlen);
|
||||
pkt.len = recvfrom(listen_socket[sock].udp, (char *) &pkt.seqno, MAXSIZE, 0, &from.sa, &fromlen);
|
||||
|
||||
if(pkt.len < 0) {
|
||||
if(!sockwouldblock(sockerrno))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue