Parcourir la source

consider unexpected structure of NAMESPACE fatal

Oswald Buddenhagen il y a 10 ans
Parent
commit
de82023427
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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