diff --git a/channels/rail/client/rail_orders.c b/channels/rail/client/rail_orders.c index 7e6cf4258..b474de690 100644 --- a/channels/rail/client/rail_orders.c +++ b/channels/rail/client/rail_orders.c @@ -538,10 +538,10 @@ static UINT rail_recv_handshake_ex_order(railPlugin* rail, RAIL_HANDSHAKE_EX_ORD if (context->custom) { - IFCALLRET(context->ClientHandshakeEx, error, context, handshakeEx); + IFCALLRET(context->ServerHandshakeEx, error, context, handshakeEx); if (error) - WLog_ERR(TAG, "context.ClientHandshakeEx failed with error %"PRIu32"", error); + WLog_ERR(TAG, "context.ServerHandshakeEx failed with error %"PRIu32"", error); } return error;