2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

[master] fix dnstap query/response selectors

4427.	[bug]		The "query" and "response" parameters to the
			"dnstap" option had their functions reversed.
This commit is contained in:
Evan Hunt
2016-08-06 00:21:04 -07:00
parent 32b4a9a3e0
commit e9bd1496ed
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
4427. [bug] The "query" and "response" parameters to the
"dnstap" option had their functions reversed.
--- 9.11.0b3 released ---
4426. [bug] Addressed Coverity warnings. [RT #42908]

View File

@@ -2976,9 +2976,9 @@ configure_dnstap(const cfg_obj_t **maps, dns_view_t *view) {
}
str = cfg_obj_asstring(obj2);
if (strcasecmp(str, "query")) {
if (strcasecmp(str, "query") == 0) {
dt &= ~DNS_DTTYPE_RESPONSE;
} else if (strcasecmp(str, "response")) {
} else if (strcasecmp(str, "response") == 0) {
dt &= ~DNS_DTTYPE_QUERY;
}