]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixed syncing when one of the backends supported GUIDs.
authorTimo Sirainen <tss@iki.fi>
Wed, 26 Jun 2013 16:33:38 +0000 (19:33 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 26 Jun 2013 16:33:38 +0000 (19:33 +0300)
src/doveadm/dsync/dsync-mailbox-import.c

index 57f7b1d6f4f5ee0f9b54bc0633f28f2705d07f43..8d27cc84f807c3901ea434504dd562568ca941fe 100644 (file)
@@ -758,7 +758,8 @@ static bool dsync_check_cur_guid(struct dsync_mailbox_importer *importer,
 {
        const char *cmp_guid;
 
-       if (change->guid == NULL || *change->guid == '\0')
+       if (change->guid == NULL || change->guid[0] == '\0' ||
+           importer->cur_guid[0] == '\0')
                return TRUE;
        if (!dsync_mail_change_guid_equals(change, importer->cur_guid, &cmp_guid)) {
                dsync_import_unexpected_state(importer, t_strdup_printf(