Fix argument-order botch which broke DNSSEC for TCP queries.

This commit is contained in:
Simon Kelley
2015-04-28 20:45:57 +01:00
parent 8efd731cc4
commit e66b4dff3c

View File

@@ -1996,6 +1996,7 @@ unsigned char *tcp_request(int confd, time_t now,
} }
else else
result = (status == STAT_SECURE ? "SECURE" : (status == STAT_INSECURE ? "INSECURE" : "BOGUS")); result = (status == STAT_SECURE ? "SECURE" : (status == STAT_INSECURE ? "INSECURE" : "BOGUS"));
if (status == STAT_BOGUS && extract_request(header, m, daemon->namebuff, NULL)) if (status == STAT_BOGUS && extract_request(header, m, daemon->namebuff, NULL))
domain = daemon->namebuff; domain = daemon->namebuff;
@@ -2040,8 +2041,8 @@ unsigned char *tcp_request(int confd, time_t now,
#endif #endif
m = process_reply(header, now, last_server, (unsigned int)m, m = process_reply(header, now, last_server, (unsigned int)m,
option_bool(OPT_NO_REBIND) && !norebind, no_cache_dnssec, bogusanswer, option_bool(OPT_NO_REBIND) && !norebind, no_cache_dnssec, cache_secure, bogusanswer,
cache_secure, ad_question, do_bit, added_pheader, check_subnet, &peer_addr); ad_question, do_bit, added_pheader, check_subnet, &peer_addr);
break; break;
} }