Profile: initialize the profile's context
authorMatthieu Patou <mat@matws.net>
Wed, 29 Feb 2012 22:19:47 +0000 (22:19 +0000)
committerMatthieu Patou <mat@matws.net>
Wed, 29 Feb 2012 22:19:47 +0000 (22:19 +0000)
libmapi/IProfAdmin.c

index 8def83802102bcbb8a5660479e256f47cbcbba8f..8e0283d31be04f12eadb37bc51cc9748a9e4dd1b 100644 (file)
@@ -713,8 +713,9 @@ _PUBLIC_ enum MAPISTATUS OpenProfile(struct mapi_context *mapi_ctx,
        retval = ldb_load_profile(mem_ctx, mapi_ctx->ldb_ctx, profile, profname, password);
 
        OPENCHANGE_RETVAL_IF(retval, retval, NULL);
+       profile->mapi_ctx = mapi_ctx;
 
-       return MAPI_E_SUCCESS;  
+       return MAPI_E_SUCCESS;
 }
 
 /**