mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-20 19:48:54 +00:00
RPC command index fix
This commit is contained in:
parent
8d7b2cd486
commit
ccbdb1a3a1
@ -576,7 +576,7 @@ void NetconEthernetTap::phyOnUnixData(PhySocket *sock,void **uptr,void *data,uns
|
|||||||
struct socket_st socket_rpc;
|
struct socket_st socket_rpc;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
memcpy(&pid, &buf[1], sizeof(pid_t)); // PID for client RPC tracking (only for debug)
|
memcpy(&pid, &buf[1], sizeof(pid_t)); // PID for client RPC tracking (only for debug)
|
||||||
memcpy(&socket_rpc, &buf[64], sizeof(struct socket_st));
|
memcpy(&socket_rpc, &buf[sizeof(pid_t)], sizeof(struct socket_st));
|
||||||
TcpConnection * new_conn;
|
TcpConnection * new_conn;
|
||||||
if(new_conn = handle_socket(sock, uptr, &socket_rpc)) {
|
if(new_conn = handle_socket(sock, uptr, &socket_rpc)) {
|
||||||
pidmap[sock] = pid;
|
pidmap[sock] = pid;
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user