diff options
-rw-r--r-- | ctdb/common/system_aix.c | 2 | ||||
-rw-r--r-- | ctdb/common/system_linux.c | 2 |
2 files changed, 2 insertions, 2 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; } diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c index cb26dcd654..464daef9ad 100644 --- a/ctdb/common/system_linux.c +++ b/ctdb/common/system_linux.c @@ -570,7 +570,7 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid) socklen_t crl = sizeof(struct ucred); int ret; if ((ret = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &crl) == 0)) { - peer_pid = cr.pid; + *peer_pid = cr.pid; } return ret; } |