Skip to content

Commit

Permalink
imap: Fix STORE UNCHANGEDSINCE to work with >32bit modseqs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and GitLab committed Dec 15, 2016
1 parent abb5d20 commit 4157964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imap/cmd-store.c
Expand Up @@ -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);
Expand Down

0 comments on commit 4157964

Please sign in to comment.