diff src/dnsbl.cpp @ 78:b6beb282fd83

start coding on new config syntax
author carl
date Sat, 16 Jul 2005 14:54:06 -0700
parents 8487650c98ee
children 091d3fe3db46
line wrap: on
line diff
--- a/src/dnsbl.cpp	Sat Jul 16 14:11:07 2005 -0700
+++ b/src/dnsbl.cpp	Sat Jul 16 14:54:06 2005 -0700
@@ -651,8 +651,8 @@
 ////////////////////////////////////////////////
 //  check the hosts from the body against the content dnsbl
 //
-bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int ip);
-bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int ip) {
+bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int &ip);
+bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int &ip) {
     CONFIG     &dc     = *priv.pc;
     string_set &hosts  = priv.memory->get_hosts();
     string_set &ignore = *priv.content_host_ignore;
@@ -820,7 +820,7 @@
     }
     else {
         // check the dns based lists
-        st = (check_dnsbl(priv, con.get_dnsbl_list(), rejectlist)) ? black : oksofar;
+        st = (check_dnsbl(priv, con.get_dnsbl_list(), rejectlist)) ? reject : oksofar;
     }
     if (st == reject) {
         // reject the recipient based on some dnsbl