summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-04-11 09:25:56 -0700
committerBrendan Cully <brendan@kublai.com>2007-04-11 09:25:56 -0700
commit5d57416893083db812613b1ff8077fec07125adf (patch)
tree077d056ee4aea74bb47310ab9b568876c7c3bf8e /imap
parent1b62930d4b5dedfda2509918f3c2014780826f62 (diff)
Make imap_hcache_open robust against missing idata->ctx
Diffstat (limited to 'imap')
-rw-r--r--imap/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/util.c b/imap/util.c
index cd3b3e78..785d8f3b 100644
--- a/imap/util.c
+++ b/imap/util.c
@@ -87,7 +87,7 @@ header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path)
imap_cachepath (idata, path, mbox, sizeof (mbox));
else
{
- if (imap_parse_path (idata->ctx->path, &mx) < 0)
+ if (!idata->ctx || imap_parse_path (idata->ctx->path, &mx) < 0)
return NULL;
imap_cachepath (idata, mx.mbox, mbox, sizeof (mbox));