]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Parts is reused, so clear the names it might contain. 9454/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 13:11:26 +0000 (15:11 +0200)
pdns/pdns_recursor.cc

index 71a61f517b85a54f66ab56f411df159d3fb77b38..58450d1a7dccbd464a9ab6e077d7969101729c9b 100644 (file)
@@ -4468,6 +4468,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) {