summaryrefslogtreecommitdiffstats
path: root/ctdb/common/system_aix.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/common/system_aix.c')
-rw-r--r--ctdb/common/system_aix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/common/system_aix.c b/ctdb/common/system_aix.c
index c17598a3af..388e943de0 100644
--- a/ctdb/common/system_aix.c
+++ b/ctdb/common/system_aix.c
@@ -368,7 +368,7 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
socklen_t crl = sizeof(struct peercred_struct);
int ret;
if ((ret = getsockopt(fd, SOL_SOCKET, SO_PEERID, &cr, &crl) == 0)) {
- peer_pid = cr.pid;
+ *peer_pid = cr.pid;
}
return ret;
}