s4:rpc_server: only pass context to op_bind() hooks
[samba.git] / source4 / rpc_server / drsuapi / dcesrv_drsuapi.c
index 347823ebca321c405a93ec4817807af7791496ba..7e2b6174d2fdd29bd7333260e77744bb6345842f 100644 (file)
        DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); \
 } while (0)
 
-#define DCESRV_INTERFACE_DRSUAPI_BIND(call, iface) \
-       dcesrv_interface_drsuapi_bind(call, iface)
-static NTSTATUS dcesrv_interface_drsuapi_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_DRSUAPI_BIND(context, iface) \
+       dcesrv_interface_drsuapi_bind(context, iface)
+static NTSTATUS dcesrv_interface_drsuapi_bind(struct dcesrv_connection_context *context,
                                              const struct dcesrv_interface *iface)
 {
-       struct dcesrv_connection_context *context = dce_call->context;
        return dcesrv_interface_bind_require_privacy(context, iface);
 }