]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Parts is reused, so clear the names it might contain. 9457/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 9 Sep 2020 13:11:26 +0000 (15:11 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 9 Sep 2020 14:15:32 +0000 (16:15 +0200)
(cherry picked from commit bc3d2b7386e058c39872a3aa74101283b6f1af45)

pdns/pdns_recursor.cc

index d809bdb597d674b08cafc14ac80b0328ca08d2b6..e6fa7e4698d0d8af4cfba2ef9dc82429170d1f71 100644 (file)
@@ -4147,6 +4147,7 @@ static int serviceMain(int argc, char*argv[])
     }
     g_dontThrottleNames.setState(std::move(dontThrottleNames));
 
+    parts.clear();
     NetmaskGroup dontThrottleNetmasks;
     stringtok(parts, ::arg()["dont-throttle-netmasks"], " ,");
     for (const auto &p : parts) {