summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2015-11-12 16:48:08 -0800
committerJoseph Henry <josephjah@gmail.com>2015-11-12 16:48:08 -0800
commit7d8084262acad594da089db58eb41dea73f661ca (patch)
treea89288fb9b13895d5f6a9c62f25b5a7159d60b39
parent6af54c594301184f1730ae292746bc286c7f3be6 (diff)
downloadinfinitytier-7d8084262acad594da089db58eb41dea73f661ca.tar.gz
infinitytier-7d8084262acad594da089db58eb41dea73f661ca.zip
Fixed rpc_st command alignment bug for RPC_SOCKET
-rwxr-xr-xnetcon/Intercept.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/netcon/Intercept.c b/netcon/Intercept.c
index a4d07f77..def6f17e 100755
--- a/netcon/Intercept.c
+++ b/netcon/Intercept.c
@@ -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);