# HG changeset patch # User Carl Byington # Date 1230603142 28800 # Node ID 8e1cbf3d96fc36a706393e11a88a77323be10ac9 # Parent fb0aafedb23d7ffd2cc815d6c97e7e65f4d7a544 simple dns lookup failure need not kill the resolver process diff -r fb0aafedb23d -r 8e1cbf3d96fc src/dnsbl.cpp --- a/src/dnsbl.cpp Sun Dec 28 09:27:58 2008 -0800 +++ b/src/dnsbl.cpp Mon Dec 29 18:12:22 2008 -0800 @@ -612,7 +612,8 @@ snprintf(text, sizeof(text), "dns_interface() wrote question %s and has answer length %d", question, glom.length); my_syslog(text); #endif - if ((glom.length == 0) || (glom.length > sizeof(glom.answer))) { + if (glom.length == 0) return 0; + if (glom.length > sizeof(glom.answer)) { priv.err = true; return 0; // cannot process overlarge answers }