# HG changeset patch # User Carl Byington # Date 1488843674 28800 # Node ID 616e46e9b8f06f8b1f615e8ebdef9780075c59d7 # Parent e27e22f6a49ab33e96113402ccccb3397e846182 start parsing spf txt records diff -r e27e22f6a49a -r 616e46e9b8f0 src/dnsbl.cpp --- a/src/dnsbl.cpp Mon Mar 06 15:03:38 2017 -0800 +++ b/src/dnsbl.cpp Mon Mar 06 15:41:14 2017 -0800 @@ -887,10 +887,11 @@ // find the answer #ifdef NS_PACKETSZ - int res_result = res_search(question+1, ns_c_in, int8_t(question[0]), glom.answer, sizeof(glom.answer)); + int res_result = res_query(question+1, ns_c_in, int8_t(question[0]), glom.answer, sizeof(glom.answer)); //#ifdef RESOLVER_DEBUG char text[1000]; - snprintf(text, sizeof(text), "process_resolver_requests() has a question %s qtype %d buf len %d result %d", question+1, int8_t(question[0]), sizeof(glom.answer), res_result); + snprintf(text, sizeof(text), "process_resolver_requests() has a question %s qtype %d buf len %d result %d", + question+1, int8_t(question[0]), sizeof(glom.answer), res_result); my_syslog(text); //#endif if (res_result < 0) glom.length = 0; // represent all errors as zero length answers