Browse Source

consider unexpected structure of NAMESPACE fatal

Oswald Buddenhagen 10 years ago
parent
commit
de82023427
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/drv_imap.c

+ 3 - 1
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