From: Simon Kelley Date: Tue, 28 Apr 2015 19:45:57 +0000 (+0100) Subject: Fix argument-order botch which broke DNSSEC for TCP queries. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e66b4dff3c562c7836d5be4c26972d665ad783f1;p=people%2Fms%2Fdnsmasq.git Fix argument-order botch which broke DNSSEC for TCP queries. --- diff --git a/src/forward.c b/src/forward.c index 1c7da3f..a8e403c 100644 --- a/src/forward.c +++ b/src/forward.c @@ -1996,8 +1996,9 @@ unsigned char *tcp_request(int confd, time_t now, } else result = (status == STAT_SECURE ? "SECURE" : (status == STAT_INSECURE ? "INSECURE" : "BOGUS")); - if (status == STAT_BOGUS && extract_request(header, m, daemon->namebuff, NULL)) - domain = daemon->namebuff; + + if (status == STAT_BOGUS && extract_request(header, m, daemon->namebuff, NULL)) + domain = daemon->namebuff; log_query(F_KEYTAG | F_SECSTAT, domain, NULL, result); @@ -2040,8 +2041,8 @@ unsigned char *tcp_request(int confd, time_t now, #endif m = process_reply(header, now, last_server, (unsigned int)m, - option_bool(OPT_NO_REBIND) && !norebind, no_cache_dnssec, bogusanswer, - cache_secure, ad_question, do_bit, added_pheader, check_subnet, &peer_addr); + option_bool(OPT_NO_REBIND) && !norebind, no_cache_dnssec, cache_secure, bogusanswer, + ad_question, do_bit, added_pheader, check_subnet, &peer_addr); break; }