mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-19 13:36:54 +02:00
Fixed rpc_st command alignment bug for RPC_SOCKET
This commit is contained in:
parent
6af54c5943
commit
7d8084262a
1 changed files with 1 additions and 2 deletions
|
@ -499,8 +499,7 @@ int socket(SOCKET_SIG)
|
|||
rpc_st.__tid = syscall(SYS_gettid);
|
||||
memset(cmd, '\0', BUF_SZ);
|
||||
cmd[0] = RPC_SOCKET;
|
||||
dwr(MSG_DEBUG,"pid = %d\n", thispid);
|
||||
memcpy(&cmd[1]+sizeof(pid_t), &rpc_st, sizeof(struct socket_st));
|
||||
memcpy(&cmd[1], &rpc_st, sizeof(struct socket_st));
|
||||
pthread_mutex_lock(&lock);
|
||||
send_command(fdret_sock, cmd);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue