Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ambrop72/badvpn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmbroz Bizjak <abizjak.pro@gmail.com>2020-02-09 02:11:26 +0300
committerAmbroz Bizjak <abizjak.pro@gmail.com>2020-02-09 02:11:26 +0300
commit96b98372776371aff4b8cad312615c8c1e3b75f7 (patch)
treef552384850009e209668c3bdbcb7d3b0fa972a6d
parent2bfa72d0f71b9261bcffe25d80e33ae2703c2730 (diff)
SocksUdpClient:Fix compile error when assertions are enabled.
-rw-r--r--socks_udp_client/SocksUdpClient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socks_udp_client/SocksUdpClient.c b/socks_udp_client/SocksUdpClient.c
index 661d351..524ec0a 100644
--- a/socks_udp_client/SocksUdpClient.c
+++ b/socks_udp_client/SocksUdpClient.c
@@ -436,7 +436,7 @@ void connection_send (struct SocksUdpClient_connection *con,
BAddr remote_addr, const uint8_t *data, int data_len)
{
ASSERT(data_len >= 0)
- ASSERT(data_len <= o->udp_mtu)
+ ASSERT(data_len <= con->client->udp_mtu)
if (con->dns_id >= 0) {
// So far, this connection has only sent a single DNS query.
@@ -471,7 +471,7 @@ void connection_send (struct SocksUdpClient_connection *con,
// o->udp_mtu and o->socks_mtu is calculated to accomodate any UDP packet not
// not exceeding o->udp_mtu.
size_t total_len = sizeof(struct socks_udp_header) + address_size + data_len;
- ASSERT(total_len <= o->socks_mtu)
+ ASSERT(total_len <= con->client->socks_mtu)
// Get a pointer to write the packet to.
uint8_t *out_data_begin;