]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Process review comments 11710/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 21 Jun 2022 07:40:30 +0000 (09:40 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 21 Jun 2022 07:43:30 +0000 (09:43 +0200)
pdns/nod.cc
pdns/unix_utility.cc

index 6dc93a233af86133799977dfdb559ac6ab89847e..133323c5b325e6937f4e36a1d9dec58c10333fd9 100644 (file)
@@ -108,7 +108,7 @@ bool PersistentSBF::init(bool ignore_pid) {
       }
     }
     catch (const filesystem::filesystem_error& e) {
-      SLOG(g_log<<Logger::Warning<<"NODDB init failed:: " << e.what() << endl,
+      SLOG(g_log<<Logger::Warning<<"NODDB init failed: " << e.what() << endl,
            log->error(Logr::Warning, e.what(), "NODDB init failed", "exception", Logging::Loggable("filesystem::filesystem_error")));
       return false;
     }
index 763885916f694576b2c56e62a6a95d2ebf29a6f3..35713eee1f34c9ef213e4257f0f1919207bca630 100644 (file)
@@ -102,8 +102,9 @@ void Utility::setBindAny(int af, sock_t sock)
 #ifdef IPV6_BINDANY
   if (af == AF_INET6) {
     if (setsockopt(sock, IPPROTO_IPV6, IPV6_BINDANY, &one, sizeof(one)) < 0) {
+      int err = errno;
       SLOG(g_log<<Logger::Warning<<"Warning: IPV6_BINDANY setsockopt failed: "<<stringerror(err)<<endl,
-           g_slog->withName("runtime")->error(Logr::Warning, err, ""Warning: IPV6_BINDANY setsockopt failed"));
+           g_slog->withName("runtime")->error(Logr::Warning, err, "Warning: IPV6_BINDANY setsockopt failed"));
     }
   }
 #endif