diff src/dnsbl.cpp @ 154:89ce226e5383

add auto whitelisting
author carl
date Sat, 07 Jul 2007 21:24:38 -0700
parents 8d7c439bb6fa
children a220bfb9211f
line wrap: on
line diff
--- a/src/dnsbl.cpp	Sat Jul 07 16:10:39 2007 -0700
+++ b/src/dnsbl.cpp	Sat Jul 07 21:24:38 2007 -0700
@@ -1026,8 +1026,7 @@
 	WHITELISTERP w = con2.find_autowhite(priv.mailaddr);
 	if (w) {
 		char *loto = to_lower_string(rcptaddr);
-		w->sent(loto);
-		free(loto);
+		w->sent(loto);	// don't free it, the whitelister takes ownership of the string
 	}
 	// accept the recipient
 	if (!con.get_content_filtering()) st = white;