summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-20 16:30:39 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-20 16:30:39 +0100
commit3bf44246023cba92ce68445ff7be6f4690079a46 (patch)
tree2a295697242053379ab7353172d98dd9cb7ce690 /src/modules
parent0f91b6173b506332ee5f771f35698f6815a11f6a (diff)
m_dnsbl Don't send snotice when the {G|K|Z}line already exists
Fixes issue #717 reported by @Robby-
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_dnsbl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 3a9360380..d4101686a 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -141,7 +141,10 @@ class DNSBLResolver : public Resolver
ServerInstance->XLines->ApplyLines();
}
else
+ {
delete kl;
+ return;
+ }
break;
}
case DNSBLConfEntry::I_GLINE:
@@ -156,7 +159,10 @@ class DNSBLResolver : public Resolver
ServerInstance->XLines->ApplyLines();
}
else
+ {
delete gl;
+ return;
+ }
break;
}
case DNSBLConfEntry::I_ZLINE:
@@ -171,7 +177,10 @@ class DNSBLResolver : public Resolver
ServerInstance->XLines->ApplyLines();
}
else
+ {
delete zl;
+ return;
+ }
break;
}
case DNSBLConfEntry::I_UNKNOWN: