]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix compilation when SO_REUSEPORT is not defined
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 11 Sep 2018 09:10:41 +0000 (11:10 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 11 Sep 2018 09:10:41 +0000 (11:10 +0200)
Reported by Yuni Kim, thanks a lot!

pdns/dnsdist.cc

index 39018f851b42183770344f4ae6889651e22e8fbe..a74816202d4b35f2966d8c57578750ae62106001 100644 (file)
@@ -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) {