From 3dd53ffbd77132f1e995bb027cbf5418125bb895 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 22 May 2001 22:53:24 +0000 Subject: [PATCH] remove unnecessary call to res_nsearch() from reverse lookup path. --- lib/bind/irs/dns_ho.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/bind/irs/dns_ho.c b/lib/bind/irs/dns_ho.c index 7238aeeaff..864d026595 100644 --- a/lib/bind/irs/dns_ho.c +++ b/lib/bind/irs/dns_ho.c @@ -52,7 +52,7 @@ /* BIND Id: gethnamaddr.c,v 8.15 1996/05/22 04:56:30 vixie Exp $ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: dns_ho.c,v 1.2 2001/05/21 14:31:30 marka Exp $"; +static const char rcsid[] = "$Id: dns_ho.c,v 1.3 2001/05/22 22:53:24 marka Exp $"; #endif /* LIBC_SCCS and not lint */ /* Imports. */ @@ -455,14 +455,8 @@ ho_byaddr(struct irs_ho *this, const void *addr, int len, int af) continue; } - if ((n = res_nsearch(pvt->res, p->qname, p->qclass, p->qtype, - p->answer, p->anslen)) < 0) { - querystate = RESQRY_FAIL; - continue; - } - - if ((n = res_nquery(pvt->res, p->qname, C_IN, T_PTR, p->answer, - p->anslen)) < 0) { + if ((n = res_nquery(pvt->res, p->qname, p->qclass, p->qtype, + p->answer, p->anslen)) < 0) { querystate = RESQRY_FAIL; continue; }