RPC command index fix

This commit is contained in:
Joseph Henry 2015-11-02 16:09:28 -08:00
parent 8d7b2cd486
commit ccbdb1a3a1
2 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ void NetconEthernetTap::phyOnUnixData(PhySocket *sock,void **uptr,void *data,uns
struct socket_st socket_rpc;
pid_t pid;
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;
if(new_conn = handle_socket(sock, uptr, &socket_rpc)) {
pidmap[sock] = pid;

Binary file not shown.