summaryrefslogtreecommitdiffstats
path: root/contrib/bind/named/ns_validate.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-12-31 19:51:17 +0000
committerpeter <peter@FreeBSD.org>1996-12-31 19:51:17 +0000
commitb13db018fbb01d60dabb34ce9bd3f06994fd81b7 (patch)
treea2327c4e40b3c074798fd7f0ddd86f66879ceab5 /contrib/bind/named/ns_validate.c
parent2d3cf9fcaf1ca2528c5fe3ba683d1f6c1268dc41 (diff)
downloadFreeBSD-src-b13db018fbb01d60dabb34ce9bd3f06994fd81b7.zip
FreeBSD-src-b13db018fbb01d60dabb34ce9bd3f06994fd81b7.tar.gz
Import Paul Vixie/ISC's bind-4.9.5-patch1 onto the vendor branch.
This has some (all?) of the DNSSEC key management/distribution mechanism in place. (The SIG and KEY RR's) Obtained from: Paul Vixie / ISC / ftp.isc.org
Diffstat (limited to 'contrib/bind/named/ns_validate.c')
-rw-r--r--contrib/bind/named/ns_validate.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/contrib/bind/named/ns_validate.c b/contrib/bind/named/ns_validate.c
index 00df9d7..1192471 100644
--- a/contrib/bind/named/ns_validate.c
+++ b/contrib/bind/named/ns_validate.c
@@ -116,9 +116,7 @@ validate(dname, qdomain, server, type, class, data, dlen
int exactmatch = 0;
struct fwdinfo *fwd;
-#ifdef DATUMREFCNT
nsp[0] = NULL;
-#endif
dprintf(3, (ddt,
"validate(), d:%s, s:[%s], t:%d, c:%d\n",
dname, inet_ntoa(server->sin_addr), type, class));
@@ -155,9 +153,7 @@ validate(dname, qdomain, server, type, class, data, dlen
* in either case, do not cache
**/
dprintf(5, (ddt, "validate: auth data found\n"));
-#ifdef DATUMREFCNT
free_nsp(nsp);
-#endif
if (needs_prime_cache)
needs_prime_cache = 0;
@@ -211,9 +207,7 @@ validate(dname, qdomain, server, type, class, data, dlen
/* stick_in_queue(dname, type, class, data); */
if (needs_prime_cache)
needs_prime_cache = 0;
-#ifdef DATUMREFCNT
free_nsp(nsp);
-#endif
return (INVALID);
case OK: /*proceed */
@@ -222,21 +216,15 @@ validate(dname, qdomain, server, type, class, data, dlen
needs_prime_cache = 0;
if (samedomain(dname, qdomain) ||
check_addr_ns(nsp, server, dname)) {
-#ifdef DATUMREFCNT
free_nsp(nsp);
-#endif
return (VALID_CACHE);
}
/* server is not one of those we know of */
/* stick_in_queue(dname, type, class, data); */
-#ifdef DATUMREFCNT
free_nsp(nsp);
-#endif
return (INVALID);
default:
-#ifdef DATUMREFCNT
free_nsp(nsp);
-#endif
return (INVALID);
} /*switch*/
OpenPOWER on IntegriCloud