From: Remi Gacogne Date: Tue, 28 Jun 2016 10:33:56 +0000 (+0200) Subject: auth: Warn when enabling SO_TIMESTAMP on v6 _failed_, not succeeded X-Git-Tag: auth-4.0.0-rc1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2e30378604e4126407c0472d8fc913baf32d53a;p=pdns auth: Warn when enabling SO_TIMESTAMP on v6 _failed_, not succeeded Reported by Andreas Jakum (thanks)! --- diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index 561fc98e7..dc8b51ab9 100644 --- a/pdns/nameserver.cc +++ b/pdns/nameserver.cc @@ -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<