mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-05 20:57:40 +01:00
Problem: build broken on kFreeBSD
Solution: fix refactor mistake introduced by:
091df743a8
Fixes https://github.com/zeromq/libzmq/issues/4113
This commit is contained in:
committed by
Luca Boccassi
parent
2998ff34aa
commit
2bf998f7e0
@@ -84,7 +84,7 @@ static std::string get_peer_address (zmq::fd_t s_)
|
||||
else if (family == PF_UNIX) {
|
||||
struct xucred cred;
|
||||
socklen_t size = sizeof (cred);
|
||||
if (!getsockopt (_s, 0, LOCAL_PEERCRED, &cred, &size)
|
||||
if (!getsockopt (s_, 0, LOCAL_PEERCRED, &cred, &size)
|
||||
&& cred.cr_version == XUCRED_VERSION) {
|
||||
std::ostringstream buf;
|
||||
buf << ":" << cred.cr_uid << ":";
|
||||
|
||||
Reference in New Issue
Block a user