r26296: Store loadparm context in DCE/RPC server context.
[jelmer/samba4-debian.git] / source / rpc_server / winreg / rpc_winreg.c
index 80f3851eb86fa56cc91ede320f97457fdbda4093..7fdd9b0413283588e5d8184753ee1d3f9591c006 100644 (file)
@@ -36,7 +36,7 @@ static NTSTATUS dcerpc_winreg_bind(struct dcesrv_call_state *dce_call,
        WERROR err;
 
        err = reg_open_samba(dce_call->context,
-                            &ctx, global_loadparm, dce_call->conn->auth_state.session_info,
+                            &ctx, dce_call->conn->dce_ctx->lp_ctx, dce_call->conn->auth_state.session_info,
                             NULL);
 
        if (!W_ERROR_IS_OK(err)) {