]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Crashfix to -F parameter handling.
authorTimo Sirainen <tss@iki.fi>
Tue, 20 Jan 2015 02:46:26 +0000 (04:46 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 20 Jan 2015 02:46:26 +0000 (04:46 +0200)
src/doveadm/dsync/dsync-mailbox-import.c

index ffa2847581718d6747454d392c2a364b867cbbe9..b8f328bc273fde77814cc732a979e7a78d70ea50 100644 (file)
@@ -1246,6 +1246,9 @@ dsync_mail_change_have_keyword(const struct dsync_mail_change *change,
 {
        const char *const *strp;
 
+       if (!array_is_created(&change->keyword_changes))
+               return FALSE;
+
        array_foreach(&change->keyword_changes, strp) {
                switch ((*strp)[0]) {
                case KEYWORD_CHANGE_FINAL: