summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-06-24 14:13:17 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-06-28 13:44:30 +0100
commit5f47ec3fae03fa0f96e14f8445870ee8f919a37a (patch)
tree7d862115f86d138a0991d7f2ddef1cf8e5cb6bc4
parentce054b4a98626099bcd93780bc4041bfa0c58cd9 (diff)
downloadevolution-data-server-5f47ec3fae03fa0f96e14f8445870ee8f919a37a.tar.gz
Bug 622008 - Don't trust is->select_folder in imapx_job_scan_changes_done()
We may have already issued a new SELECT command by the time the scan_changes completion function is called, and is->select_folder may be NULL already. (cherry picked from commit 0062297b6bd46584ae52e4f7541637e5e01de0a5)
-rw-r--r--camel/providers/imapx/camel-imapx-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index a6e37e198..30a661ffb 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3389,9 +3389,9 @@ imapx_job_scan_changes_done(CamelIMAPXServer *is, CamelIMAPXCommand *ic)
gchar *uid = (gchar *) l->data;
CamelMessageInfo *mi;
- mi = camel_folder_summary_uid (is->select_folder->summary, uid);
+ mi = camel_folder_summary_uid (job->folder->summary, uid);
if (mi) {
- imapx_update_summary_for_removed_message (mi, is->select_folder);
+ imapx_update_summary_for_removed_message (mi, job->folder);
camel_message_info_free (mi);
}