]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #16655 from omoerbeek/rec-suse-boost66
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 6 Jan 2026 14:08:19 +0000 (15:08 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 14:08:19 +0000 (15:08 +0100)
rec: make code boost 1.66 compatible again

1  2 
pdns/recursordist/rec-cookiestore.cc

index 7477fd20d4b90f7d378d3e1b5d57ed8a94441063,f3adafddaaf876260cd75e25a73a5f83f212e7ab..37a63741c932d84363374f5f51bdb7b621a7cb83
@@@ -44,12 -44,11 +44,12 @@@ uint64_t CookieStore::dump(int fileDesc
  
    fprintf(filePtr.get(), "; cookie dump follows\n; server\tlocal\tcookie\tsupport\tts\n");
    for (const auto& entry : *this) {
-     count++;
+     theCount++;
      timebuf_t tmp;
      fprintf(filePtr.get(), "%s\t%s\t%s\t%s\t%s\n",
 -            entry.d_address.toStringWithPortExcept(53).c_str(), entry.d_localaddress.toString().c_str(),
 -            entry.d_cookie.toDisplayString().c_str(),
 +            entry.d_address.toStringWithPortExcept(53).c_str(),
 +            entry.d_localaddress.isUnspecified() ? "-" : entry.d_localaddress.toString().c_str(),
 +            entry.d_support == CookieEntry::Support::Unsupported ? "-" : entry.d_cookie.toDisplayString().c_str(),
              CookieEntry::toString(entry.d_support).c_str(),
              entry.d_lastused == std::numeric_limits<time_t>::max() ? "Forever" : timestamp(entry.d_lastused, tmp));
    }