rail_orders.c: Fix wrong callback call on server handshake ex recv (#5345)
authorMati Shabtay <35010736+m4ntis@users.noreply.github.com>
Thu, 25 Apr 2019 08:55:24 +0000 (11:55 +0300)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Apr 2019 08:55:24 +0000 (10:55 +0200)
channels/rail/client/rail_orders.c

index 7e6cf42..b474de6 100644 (file)
@@ -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;