]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Fix STORE UNCHANGEDSINCE to work with >32bit modseqs.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 15 Dec 2016 13:00:54 +0000 (15:00 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 15 Dec 2016 14:33:27 +0000 (16:33 +0200)
src/imap/cmd-store.c

index 211da0d75103334d40ded3e301dc45d1d9df67f4..16fc26e2f161210062518fb45e14868a6c6ba570 100644 (file)
@@ -183,7 +183,7 @@ bool cmd_store(struct client_command_context *cmd)
        mail_search_args_unref(&search_args);
 
        i_array_init(&modified_set, 64);
-       if (ctx.max_modseq < (uint32_t)-1) {
+       if (ctx.max_modseq < (uint64_t)-1) {
                /* STORE UNCHANGEDSINCE is being used */
                mailbox_transaction_set_max_modseq(t, ctx.max_modseq,
                                                   &modified_set);