]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fix assert-crash in SORT caused by earlier changes
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 6 Jun 2017 06:39:34 +0000 (09:39 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 6 Jun 2017 10:33:04 +0000 (13:33 +0300)
Broken by 0a6a527f0c42b5478d80ac53ab357885676fd516

Fixes:
Panic: file index-sort-string.c: line 668 (index_sort_add_ids_range): assertion failed: (str != NULL)

src/lib-storage/index/index-sort-string.c

index 35da830a5763d943381d92944fdd7adda3e45310..bd07906e19846dbf597b9e695c930be8a076ea7b 100644 (file)
@@ -357,6 +357,7 @@ index_sort_get_string(struct sort_string_context *ctx,
 
        if (node->no_update) {
                /* we've already determined that we can't do this lookup */
+               *str_r = ctx->sort_strings[seq];
                return FALSE;
        }