From 6e384d7967bd1c222e1fb5c2ea9d60b481ad41ba Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 9 Sep 2020 15:11:26 +0200 Subject: [PATCH] Parts is reused, so clear the names it might contain. (cherry picked from commit bc3d2b7386e058c39872a3aa74101283b6f1af45) --- pdns/pdns_recursor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index d809bdb597..e6fa7e4698 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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) { -- 2.47.2