]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4086] Address review comments
authorThomas Markwalder <tmark@isc.org>
Wed, 17 Sep 2025 13:40:21 +0000 (09:40 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 17 Sep 2025 13:40:21 +0000 (09:40 -0400)
src/lib/asiolink/process_spawn.cc
    User count() instead of contains()

src/lib/asiolink/process_spawn.cc

index 51cf1f0c3b0e853a6b28f7927ae28b0457602be2..10769355c1ccc64c7f45e7fd3b643e62aac1e982 100644 (file)
@@ -331,7 +331,7 @@ ProcessSpawnImpl::getCommandLine(std::unordered_set<std::string> redact_args /*
             s << " " << "*****";
             redact_next = false;
         } else {
-            if (redact_args.contains(args_[i])) {
+            if (redact_args.count(args_[i])) {
                 redact_next = true;
             }