diff options
Diffstat (limited to 'ctdb/common/system_linux.c')
-rw-r--r-- | ctdb/common/system_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |