From: Remi Gacogne Date: Tue, 11 Sep 2018 09:10:41 +0000 (+0200) Subject: dnsdist: Fix compilation when SO_REUSEPORT is not defined X-Git-Tag: dnsdist-1.3.3~105^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6956%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix compilation when SO_REUSEPORT is not defined Reported by Yuni Kim, thanks a lot! --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 39018f851b..a74816202d 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -2610,7 +2610,7 @@ try #ifdef SO_REUSEPORT SSetsockopt(cs->tcpFD, SOL_SOCKET, SO_REUSEPORT, 1); #else - warnlog("SO_REUSEPORT has been configured on local address '%s' but is not supported", cs.local.toStringWithPort()); + warnlog("SO_REUSEPORT has been configured on local address '%s' but is not supported", cs->local.toStringWithPort()); #endif } if(cs->local.sin4.sin_family == AF_INET6) {