]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
bugfix
authorTimo Sirainen <tss@iki.fi>
Wed, 3 Dec 2003 18:14:26 +0000 (20:14 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 3 Dec 2003 18:14:26 +0000 (20:14 +0200)
--HG--
branch : HEAD

src/lib/hash.c

index e1f20033d7faee549b256f7d8dfa4a80e9061609..fad0f3c18eff662d6335151776eb9d960ca3bcee 100644 (file)
@@ -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);