]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Fixed extension resizing
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 3 Jun 2016 17:10:02 +0000 (20:10 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 14 Jun 2016 09:21:30 +0000 (12:21 +0300)
Broken by 8483af4ff.

src/lib-index/mail-index-sync-ext.c

index 19beb8cc3f3244de1a491e675369ba2c0dcf22b7..e758e53df3081cd0a0d85311546c93f39e8aa4a7 100644 (file)
@@ -283,6 +283,8 @@ sync_ext_resize(const struct mail_transaction_ext_intro *u,
        /* something changed. get ourself a new map before we start changing
           anything in it. */
        map = mail_index_sync_get_atomic_map(ctx);
+       /* ext was duplicated to the new map. */
+       ext = array_idx_modifiable(&map->extensions, ext_map_idx);
 
        if (new_padded_hdr_size < old_padded_hdr_size) {
                /* header shrank */