1
--- deadwood-2.9.02/src/DwRecurse.c.orig 2010-07-28 14:35:29.000000000 -0700
2
+++ deadwood-2.9.02/src/DwRecurse.c 2010-07-28 15:41:27.000000000 -0700
4
if(view->ns_types[0] == RR_SOA) {
5
return TYPE_NOT_THERE; /* May be NXDOMAIN; look at header */
7
- if((view->ns_types[0] & RRX_NS_MASK) == RRX_GLUELESS_NS) {
8
+ if(view->ns_types[0] == RR_NS) {
11
return TYPE_NO_USEFUL_DATA;
12
@@ -1505,13 +1505,15 @@
14
dwx_check_answer_section(in,query,view) == -1 ||
15
dwx_if_an_then_no_ns_nor_ar(view) == -1 ||
16
- dwx_cleanup_ns_ar(view) == -1 ||
17
- dwx_check_bailiwick_ns_section(view,query,bailiwick) == -1 ||
18
- dwx_link_ns_records(view) == -1
20
+ dwx_cleanup_ns_ar(view) == -1) {
21
goto catch_dwx_dissect_packet;
23
type = dwx_determine_answer_type(view,query);
24
+ if(type == TYPE_NS_REFER && (
25
+ dwx_check_bailiwick_ns_section(view,query,bailiwick) == -1 ||
26
+ dwx_link_ns_records(view) == -1 )) {
27
+ goto catch_dwx_dissect_packet;
30
out = dwx_make_cache_string(view,type);
31
dwx_zap_dns_details(view);