[Pdns-dev] PacketCache::purge
Bill Snow
bsnow at afilias.info
Tue Nov 8 10:58:30 CET 2011
Does anybody know why PacketCache::purge(const vector<string>
&matches) seems to explicitly skip the first of the list of matches?
thanks!
Bill Snow
Index: packetcache.cc
===================================================================
--- packetcache.cc (revision 2296)
+++ packetcache.cc (working copy)
@@ -221,7 +221,7 @@
'www.userpowerdns.com'
*/
- for(vector<string>::const_iterator match = ++matches.begin(); match
!= matches.end() ; ++match) {
+ for(vector<string>::const_iterator match = matches.begin(); match
!= matches.end() ; ++match) {
if(ends_with(*match, "$")) {
string suffix(*match);
suffix.resize(suffix.size()-1);
More information about the Pdns-dev
mailing list