use dcesrv_call_account_name() instead of direct structure access
[tridge/openchange.git] / trunk / mapiproxy / servers / default / emsmdb / dcesrv_exchange_emsmdb.c
index b0fbfb442592dfcc940ef5f3cde502a4a721e0ce..8173435dff1852c8a1e6872c5a777cd51becceb2 100644 (file)
@@ -93,7 +93,7 @@ static enum MAPISTATUS dcesrv_EcDoConnect(struct dcesrv_call_state *dce_call,
 
        /* Step 1. Initialize the emsmdbp context */
        emsmdbp_ctx = emsmdbp_init(dce_call->conn->dce_ctx->lp_ctx, 
-                                  dce_call->context->conn->auth_state.session_info->info->account_name,
+                                  dcesrv_call_account_name(dce_call),
                                   openchange_ldb_ctx);
        if (!emsmdbp_ctx) {
                smb_panic("unable to initialize emsmdbp context");
@@ -921,7 +921,7 @@ static enum MAPISTATUS dcesrv_EcDoConnectEx(struct dcesrv_call_state *dce_call,
 
        /* Step 1. Initialize the emsmdbp context */
        emsmdbp_ctx = emsmdbp_init(dce_call->conn->dce_ctx->lp_ctx,
-                                  dce_call->context->conn->auth_state.session_info->info->account_name,
+                                  dcesrv_call_account_name(dce_call),
                                   openchange_ldb_ctx);
        if (!emsmdbp_ctx) {
                smb_panic("Unable to initialize emsmdbp context");