changeset 22131:d1ad3d43a3d2

lib-storage: Fix assert-crash in SORT caused by earlier changes Broken by 0a6a527f0c42b5478d80ac53ab357885676fd516 Fixes: Panic: file index-sort-string.c: line 668 (index_sort_add_ids_range): assertion failed: (str != NULL)
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 06 Jun 2017 09:39:34 +0300
parents 39df47bebbe7
children 7ae75b9c0a23
files src/lib-storage/index/index-sort-string.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-sort-string.c	Mon Jun 05 21:53:18 2017 +0300
+++ b/src/lib-storage/index/index-sort-string.c	Tue Jun 06 09:39:34 2017 +0300
@@ -357,6 +357,7 @@
 
 	if (node->no_update) {
 		/* we've already determined that we can't do this lookup */
+		*str_r = ctx->sort_strings[seq];
 		return FALSE;
 	}