From: Timo Sirainen Date: Wed, 3 Dec 2003 18:14:26 +0000 (+0200) Subject: bugfix X-Git-Tag: 1.1.alpha1~4207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a7c16f88de068a704828f47154c25fcbf30c292;p=thirdparty%2Fdovecot%2Fcore.git bugfix --HG-- branch : HEAD --- diff --git a/src/lib/hash.c b/src/lib/hash.c index e1f20033d7..fad0f3c18e 100644 --- a/src/lib/hash.c +++ b/src/lib/hash.c @@ -341,14 +341,13 @@ static struct hash_node *hash_iterate_next(struct hash_iterate_context *ctx, struct hash_node *node) { do { + node = node->next; if (node == NULL) { if (++ctx->pos == ctx->table->size) { ctx->pos--; return NULL; } node = &ctx->table->nodes[ctx->pos]; - } else { - node = node->next; } } while (node->key == NULL);