s4:rpc_server: only pass context to op_bind() hooks
[nivanova/samba-autobuild/.git] / source4 / rpc_server / dcesrv_mgmt.c
index 210a86de6ee0b0708fe2d3364eb5be4ebbbe49c4..e520a34f0bd54cdb8e21488123e4614bf018478e 100644 (file)
@@ -24,8 +24,8 @@
 #include "rpc_server/dcerpc_server_proto.h"
 #include "librpc/gen_ndr/ndr_mgmt.h"
 
-#define DCESRV_INTERFACE_MGMT_BIND(call, iface) \
-       dcesrv_interface_mgmt_bind(call, iface)
+#define DCESRV_INTERFACE_MGMT_BIND(context, iface) \
+       dcesrv_interface_mgmt_bind(context, iface)
 /*
  * This #define allows the mgmt interface to accept invalid
  * association groups, because association groups are to coordinate
 
 #define DCESRV_INTERFACE_MGMT_FLAGS DCESRV_INTERFACE_FLAGS_HANDLES_NOT_USED
 
-static NTSTATUS dcesrv_interface_mgmt_bind(struct dcesrv_call_state *dce_call,
+static NTSTATUS dcesrv_interface_mgmt_bind(struct dcesrv_connection_context *context,
                                             const struct dcesrv_interface *iface)
 {
-       struct dcesrv_connection_context *context = dce_call->context;
        return dcesrv_interface_bind_allow_connect(context, iface);
 }