Mercurial > dnsbl
diff src/dnsbl.cpp @ 162:c4bce911c276 stable-6-03
don't add auto whitelist for A to A
author | carl |
---|---|
date | Sat, 14 Jul 2007 12:25:17 -0700 |
parents | ea7c57a4a2d1 |
children | 97d7da45fe2a |
line wrap: on
line diff
--- a/src/dnsbl.cpp Tue Jul 10 14:09:23 2007 -0700 +++ b/src/dnsbl.cpp Sat Jul 14 12:25:17 2007 -0700 @@ -1023,9 +1023,9 @@ } // we will accept the recipient, but add an auto-whitelist entry // if needed to ensure we can accept replies - WHITELISTERP w = con2.find_autowhite(priv.mailaddr); + loto = to_lower_string(rcptaddr); + WHITELISTERP w = con2.find_autowhite(loto, priv.mailaddr); if (w) { - char *loto = to_lower_string(rcptaddr); if (debug_syslog > 1) { char buf[maxlen]; char msg[maxlen]; @@ -1034,6 +1034,9 @@ } w->sent(loto); // don't free it, the whitelister takes ownership of the string } + else { + free(loto); + } // accept the recipient if (!con.get_content_filtering()) st = white; if (st == oksofar) {