From: Mark Andrews Date: Thu, 9 Jan 2014 04:57:59 +0000 (+1100) Subject: silence compiler warning X-Git-Tag: v9.9.5rc1~23 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=72512a6031a812c285e0140d9121f9de49825784;p=thirdparty%2Fbind9.git silence compiler warning (cherry picked from commit 109f477ed7b0ea20217f0b1d5560f376c6d2cd92) --- diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index ee1adce2579..7d488b689b3 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -3314,7 +3314,8 @@ dns_dispatch_addresponse2(dns_dispatch_t *disp, isc_sockaddr_t *dest, LOCK(&qid->lock); id = (dns_messageid_t)dispatch_random(DISP_ARC4CTX(disp)); ok = ISC_FALSE; - for (i = 0; i < 64; i++) { + i = 0; + do { bucket = dns_hash(qid, dest, id, localport); if (entry_search(qid, dest, id, localport, bucket) == NULL) { ok = ISC_TRUE; @@ -3322,7 +3323,7 @@ dns_dispatch_addresponse2(dns_dispatch_t *disp, isc_sockaddr_t *dest, } id += qid->qid_increment; id &= 0x0000ffff; - } + } while (i++ < 64); UNLOCK(&qid->lock); if (!ok) {