From 34bbe03b5c2ced4b21ba2cd8409b2f3ec5b48a89 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 10 Feb 2000 20:38:10 +0000 Subject: [PATCH] the bit test in dns_c_ctx_getforward() was backwards --- lib/dns/config/confctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/config/confctx.c b/lib/dns/config/confctx.c index 732d647486..3df74c771c 100644 --- a/lib/dns/config/confctx.c +++ b/lib/dns/config/confctx.c @@ -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);