]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: mail_index_update_keywords() - Add missing data stack frame
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 27 Dec 2022 17:03:26 +0000 (12:03 -0500)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 11 Jan 2023 21:50:37 +0000 (23:50 +0200)
src/lib-index/mail-index-transaction-update.c

index 128d69f37295cfefdab595be305ab057cd1ef7d6..dfceaf23e58b6e224a0d09317e62ec03ae7ad81e 100644 (file)
@@ -1192,11 +1192,11 @@ void mail_index_update_keywords(struct mail_index_transaction *t, uint32_t seq,
        case MODIFY_REPLACE:
                /* split this into add+remove. remove all existing keywords not
                   included in the keywords list */
-               if (seq < t->first_new_seq) {
+               if (seq < t->first_new_seq) T_BEGIN {
                        /* remove the ones currently in index */
                        remove_keywords = keyword_update_remove_existing(t, seq);
                        unref_keywords = remove_keywords;
-               }
+               } T_END;
                /* remove from all changes we've done in this transaction */
                array_foreach_modifiable(&t->keyword_updates, u)
                        seq_range_array_remove(&u->add_seq, seq);