]> granicus.if.org Git - pdns/commitdiff
auth: Warn when enabling SO_TIMESTAMP on v6 _failed_, not succeeded
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Jun 2016 10:33:56 +0000 (12:33 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Jun 2016 10:33:56 +0000 (12:33 +0200)
Reported by Andreas Jakum (thanks)!

pdns/nameserver.cc

index 561fc98e75aa305910da8ad58e377d690a287534..dc8b51ab908d9571134835da8a61abd4c39be8a8 100644 (file)
@@ -229,7 +229,7 @@ void UDPNameserver::bindIPv6()
       setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(one));      // if this fails, we report an error in tcpreceiver too
     }
 
-    if (setSocketTimestamps(s))
+    if (!setSocketTimestamps(s))
       L<<Logger::Warning<<"Unable to enable timestamp reporting for socket"<<endl;
 
 #ifdef SO_REUSEPORT