Skip to content

Commit

Permalink
imapc: Added missing error handling to subscriptions list refreshing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and GitLab committed Apr 12, 2016
1 parent e74f4af commit 2a7a7f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib-storage/index/imapc/imapc-list.c
Expand Up @@ -791,6 +791,9 @@ imapc_list_subscriptions_refresh(struct mailbox_list *_src_list,
imapc_command_sendf(cmd, "LSUB \"\" %s", pattern);
imapc_simple_run(&ctx);

if (ctx.ret < 0)
return -1;

/* replace subscriptions tree in destination */
if (dest_list->subscriptions != NULL)
mailbox_tree_deinit(&dest_list->subscriptions);
Expand Down

0 comments on commit 2a7a7f6

Please sign in to comment.