From: Timo Sirainen Date: Tue, 20 Jan 2015 02:46:26 +0000 (+0200) Subject: dsync: Crashfix to -F parameter handling. X-Git-Tag: 2.2.16.rc1~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=845bac8afdbd5f521b8a6d4493f0581f3b1a2692;p=thirdparty%2Fdovecot%2Fcore.git dsync: Crashfix to -F parameter handling. --- diff --git a/src/doveadm/dsync/dsync-mailbox-import.c b/src/doveadm/dsync/dsync-mailbox-import.c index ffa2847581..b8f328bc27 100644 --- a/src/doveadm/dsync/dsync-mailbox-import.c +++ b/src/doveadm/dsync/dsync-mailbox-import.c @@ -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: