Skip to content

Commit

Permalink
Problem: build broken on kFreeBSD
Browse files Browse the repository at this point in the history
Solution: fix refactor mistake introduced by:

091df74

Fixes #4113
  • Loading branch information
bluca committed Jan 6, 2021
1 parent 2998ff3 commit 2bf998f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream_engine_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 << ":";
Expand Down

0 comments on commit 2bf998f

Please sign in to comment.