s4:rpc_server: only pass context to op_bind() hooks
[nivanova/samba-autobuild/.git] / source4 / rpc_server / dcerpc_server.c
index 9717a24d6378fbae92c1b88478ed899e0dba1e0e..d9ed390a49894f9e609161ac3ed45ef772545fdf 100644 (file)
@@ -1510,7 +1510,7 @@ static NTSTATUS dcesrv_check_or_create_context(struct dcesrv_call_state *call,
         */
        call->state_flags |= DCESRV_CALL_STATE_FLAG_MULTIPLEXED;
 
-       status = iface->bind(call, iface, if_version);
+       status = iface->bind(context, iface);
        call->context = NULL;
        if (!NT_STATUS_IS_OK(status)) {
                /* we don't want to trigger the iface->unbind() hook */