diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-16 14:20:55 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-16 14:20:55 +0000 |
commit | 1e60a6639e4cff2f1b022c8973e164636f3857f2 (patch) | |
tree | 87cc0c8554572354fa8fe2693728b2444026e22c /src | |
parent | 1ef1977b8066dc90d6978ede65e584d13693d142 (diff) |
Incrementing the counter in a loop is useful to prevent it being an infinite loop
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12474 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_dnsbl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index eb3ff976d..5b925d26d 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -371,6 +371,7 @@ class ModuleDNSBL : public Module bool cached; DNSBLResolver *r = new DNSBLResolver(this, nameExt, countExt, hostname, user, DNSBLConfEntries[i], cached); ServerInstance->AddResolver(r, cached); + i++; } countExt.set(user, i); } |