From 2e48a4e6ad080a9a5fc1a189a877166251dd5947 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 2 Jul 2004 22:15:12 +0000 Subject: [PATCH] 1685. [bug] Change #1679 loop tests weren't quite right. --- CHANGES | 2 ++ lib/dns/resolver.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index de5eb6cab7..8e4ad2a0b5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1685. [bug] Change #1679 loop tests weren't quite right. + 1683. [bug] dig +sigchase could leak memory. [RT #11445] 1682. [port] Update configure test for (long long) printf format. diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index e7ba87e82c..8000f7a8b3 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: resolver.c,v 1.284.18.7 2004/06/27 01:30:37 marka Exp $ */ +/* $Id: resolver.c,v 1.284.18.8 2004/07/02 22:15:12 sra Exp $ */ #include @@ -2119,7 +2119,7 @@ fctx_nextaddress(fetchctx_t *fctx) { if (addrinfo != NULL) break; find = ISC_LIST_NEXT(find, publink); - if (find != fctx->find && find == NULL) + if (find == NULL) find = ISC_LIST_HEAD(fctx->finds); } while (find != start); } @@ -2164,7 +2164,7 @@ fctx_nextaddress(fetchctx_t *fctx) { if (addrinfo != NULL) break; find = ISC_LIST_NEXT(find, publink); - if (find != fctx->altfind && find == NULL) + if (find == NULL) find = ISC_LIST_HEAD(fctx->altfinds); } while (find != start); }