# HG changeset patch # User Carl Byington # Date 1230453723 28800 # Node ID 495cfe5caead404992cae344df7a38aada565bdf # Parent 45b298212ff18557edc331552d0037da9eac8034 try to allow mixed -lresolv and libresolv.a for ns_parserr diff -r 45b298212ff1 -r 495cfe5caead src/dnsbl.cpp --- a/src/dnsbl.cpp Sat Dec 27 23:57:24 2008 -0800 +++ b/src/dnsbl.cpp Sun Dec 28 00:42:03 2008 -0800 @@ -532,9 +532,6 @@ snprintf(text, sizeof(text), "process_resolver_requests() has a question %s", question); my_syslog(text); #endif - if ((_res.options & RES_INIT) == 0) res_init(); - _res.retry = 2; - _res.retrans = RES_TIMEOUT; glom.length = res_search(question, ns_c_in, ns_t_a, glom.answer, sizeof(glom.answer)); if (glom.length < 0) glom.length = 0; // represent all errors as zero length answers #else @@ -1713,6 +1710,11 @@ // this is the worker process // child does not need the listening socket close(resolver_socket); +#ifdef NS_PACKETSZ + res_init(); + _res.retry = 2; + _res.retrans = RES_TIMEOUT; +#endif process_resolver_requests(s); exit(0); }