mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-24 18:30:38 -05:00
silence compiler warning
This commit is contained in:
parent
080977753e
commit
109f477ed7
1 changed files with 3 additions and 2 deletions
|
|
@ -3273,7 +3273,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;
|
||||
|
|
@ -3281,7 +3282,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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue