From c2e30378604e4126407c0472d8fc913baf32d53a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 28 Jun 2016 12:33:56 +0200 Subject: [PATCH] auth: Warn when enabling SO_TIMESTAMP on v6 _failed_, not succeeded Reported by Andreas Jakum (thanks)! --- pdns/nameserver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index 561fc98e75..dc8b51ab90 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<