X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/8c3aa944706544b2b93cd8363d1cb021b1ab4dd1..3ff64957a02d6e6a573211c7e3a3c037a0fabf78:/src/types.c diff --git a/src/types.c b/src/types.c index 32db284..bd87450 100644 --- a/src/types.c +++ b/src/types.c @@ -3,7 +3,7 @@ * - RR-type-specific code, and the machinery to call it */ /* - * This file is part of adns, which is Copyright (C) 1997, 1998 Ian Jackson + * This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -432,6 +432,7 @@ static adns_status pap_hostaddr(const parseinfo *pai, int *cbyte_io, qcontext ctx; int id; adns_query nqu; + adns_queryflags nflags; dmstart= cbyte= *cbyte_io; st= pap_domain(pai, &cbyte, max, &rrp->host, @@ -461,9 +462,12 @@ static adns_status pap_hostaddr(const parseinfo *pai, int *cbyte_io, ctx.ext= 0; ctx.callback= icb_hostaddr; ctx.info.hostaddr= rrp; + + nflags= adns_qf_quoteok_query; + if (!(pai->qu->flags & adns_qf_cname_loose)) nflags |= adns_qf_cname_forbid; + st= adns__internal_submit(pai->ads, &nqu, adns__findtype(adns_r_addr), - &pai->qu->vb, id, - adns_qf_quoteok_query, pai->now, 0, &ctx); + &pai->qu->vb, id, nflags, pai->now, 0, &ctx); if (st) return st; nqu->parent= pai->qu;