# HG changeset patch # User carl # Date 1085964433 25200 # Node ID d718dca81bc932e59bdd9124fa8496d3047e50b6 # Parent fc7f8f3ea90f33909f2689b57659190d0ce35033 fix dangling reference diff -r fc7f8f3ea90f -r d718dca81bc9 src/dnsbl.cpp --- a/src/dnsbl.cpp Sun May 30 16:17:44 2004 -0700 +++ b/src/dnsbl.cpp Sun May 30 17:47:13 2004 -0700 @@ -570,7 +570,7 @@ discard(nameservers); return reject_host; } - host = *i; + host = *i; // a reference into priv.memory->hosts, which will live until this smtp transaction is closed ip = protected_dns_interface(host, true, &nameservers); if (debug_syslog) { char buf[200]; @@ -600,7 +600,7 @@ discard(nameservers); return reject_host; } - host = (*i).first; + host = register_string(priv.memory->hosts, (*i).first); // put a copy into priv.memory->hosts, and return that reference ip = (*i).second; if (!ip) ip = protected_dns_interface(host, false, NULL); if (debug_syslog) {