[master] fixed bug in isc_ht_iter_next

This commit is contained in:
Witold Krecicki
2016-05-27 19:57:27 +02:00
parent 7898bf1fbc
commit 57651e2c85

View File

@@ -277,9 +277,10 @@ isc_ht_iter_next(isc_ht_iter_t *it) {
it->cur = it->cur->next;
if (it->cur == NULL) {
while (it->i < it->ht->size && it->ht->table[it->i] == NULL)
do {
it->i++;
if (it->i < it->ht->size)
} while (it->i < it->ht->size && it->ht->table[it->i] == NULL);
if (it->i >= it->ht->size)
return (ISC_R_NOMORE);
it->cur = it->ht->table[it->i];
}