summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-12-07 13:03:41 -0800
committerKevin McCarthy <kevin@8t8.us>2020-12-07 13:03:41 -0800
commitb5ef1155371784f2410576049b54eec42252bfaf (patch)
tree641b714faae718504fb56d2e4fe03539543964f6 /imap
parenta51f058f02cfd27d9892e25b92cc58676c168441 (diff)
Abort IMAP open if condstore/qresync updates fetch fails.
An error in imap_cmd_step() was not being properly returned to the caller.
Diffstat (limited to 'imap')
-rw-r--r--imap/message.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/imap/message.c b/imap/message.c
index ed073e96..094440bc 100644
--- a/imap/message.c
+++ b/imap/message.c
@@ -671,6 +671,9 @@ static int read_headers_condstore_qresync_updates (IMAP_DATA *idata,
imap_hcache_put (idata, idata->msn_index[header_msn - 1]);
}
+ if (rc != IMAP_CMD_OK)
+ return -1;
+
/* The IMAP flag setting as part of cmd_parse_fetch() ends up
* flipping these on. */
idata->check_status &= ~IMAP_FLAGS_PENDING;