]> granicus.if.org Git - pdns/commitdiff
avoid fbsd10 build failure, thanks @rubenk
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 17 Feb 2015 16:26:41 +0000 (17:26 +0100)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 17 Feb 2015 16:26:41 +0000 (17:26 +0100)
pdns/unix_utility.cc

index 13c2c54ed6ca9876e6b59459932476bdf8a128ee..673e9098f5b7a3e4d05ffcfd6517e97308b5c33d 100644 (file)
@@ -118,7 +118,7 @@ void Utility::setBindAny(int af, sock_t sock)
 
 #ifdef IP_BINDANY
   if (af == AF_INET)
-    if (setsockopt(s, IPPROTO_IP, IP_BINDANY, &one, sizeof(one)) < 0)
+    if (setsockopt(sock, IPPROTO_IP, IP_BINDANY, &one, sizeof(one)) < 0)
       theL()<<Logger::Warning<<"Warning: IP_BINDANY setsockopt failed: "<<strerror(errno)<<endl;
 #endif
 #ifdef IPV6_BINDANY