the bit test in dns_c_ctx_getforward() was backwards

This commit is contained in:
Bob Halley 2000-02-10 20:38:10 +00:00
parent 269d5ca1c7
commit 34bbe03b5c

View file

@ -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);