From 0a45f098e446a7f41c2a71d9dd0fd8f459b49c34 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 23 Aug 2000 18:45:13 +0000 Subject: [PATCH] Obey the DNS_DBFIND_GLUEOK flag in find(). --- lib/dns/sdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/sdb.c b/lib/dns/sdb.c index fa0540e528..0c34b99ea8 100644 --- a/lib/dns/sdb.c +++ b/lib/dns/sdb.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: sdb.c,v 1.6 2000/08/23 18:28:02 bwelling Exp $ */ +/* $Id: sdb.c,v 1.7 2000/08/23 18:45:13 bwelling Exp $ */ #include @@ -752,9 +752,9 @@ find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version, /* * Look for an NS at the current label, unless this is the - * origin. + * origin or glue is ok. */ - if (i != olabels) { + if (i != olabels && (options & DNS_DBFIND_GLUEOK) == 0) { result = findrdataset(db, node, version, dns_rdatatype_ns, 0, now, rdataset, sigrdataset);