]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Parts is reused, so clear the names it might contain. 9456/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:05:01 +0000 (16:05 +0200)
(cherry picked from commit bc3d2b7386e058c39872a3aa74101283b6f1af45)

pdns/pdns_recursor.cc

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