From de82023427ecf9dbe755aa8d5085f2846de6f2c5 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 4 Oct 2014 17:30:15 +0200 Subject: [PATCH] consider unexpected structure of NAMESPACE fatal --- src/drv_imap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index 13e4f37..2b2e26c 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1781,8 +1781,10 @@ imap_open_store_namespace2( imap_store_t *ctx ) ctx->prefix = nsp_1st_ns->val; if (!ctx->delimiter) ctx->delimiter = nfstrdup( nsp_1st_dl->val ); + imap_open_store_finalize( ctx ); + } else { + imap_open_store_bail( ctx ); } - imap_open_store_finalize( ctx ); } static void