mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-17 16:18:06 -04:00
the bit test in dns_c_ctx_getforward() was backwards
This commit is contained in:
parent
269d5ca1c7
commit
34bbe03b5c
1 changed files with 2 additions and 2 deletions
|
|
@ -3203,10 +3203,10 @@ dns_c_ctx_getforward(dns_c_ctx_t *cfg, dns_c_forw_t *forw)
|
|||
REQUIRE(forw != NULL);
|
||||
|
||||
if (DNS_C_CHECKBIT(FORWARD_BIT, &cfg->options->setflags1)) {
|
||||
return (ISC_R_NOTFOUND);
|
||||
} else {
|
||||
*forw = cfg->options->forward;
|
||||
res = ISC_R_SUCCESS;
|
||||
} else {
|
||||
return (ISC_R_NOTFOUND);
|
||||
}
|
||||
|
||||
return (res);
|
||||
|
|
|
|||
Loading…
Reference in a new issue