From abacfceb23fc41d0b632a7985c2291c02225b432 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 Aug 2023 19:38:07 +0300 Subject: libtox synced with their master, it could help to fix #3649 --- protocols/Tox/libtox/src/toxcore/TCP_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/libtox/src/toxcore/TCP_common.c') diff --git a/protocols/Tox/libtox/src/toxcore/TCP_common.c b/protocols/Tox/libtox/src/toxcore/TCP_common.c index 349e35fda7..a42faced1a 100644 --- a/protocols/Tox/libtox/src/toxcore/TCP_common.c +++ b/protocols/Tox/libtox/src/toxcore/TCP_common.c @@ -278,7 +278,7 @@ int read_packet_TCP_secure_connection( return -1; } - VLA(uint8_t, data_encrypted, *next_packet_length); + VLA(uint8_t, data_encrypted, (int) *next_packet_length); const int len_packet = read_TCP_packet(logger, ns, sock, data_encrypted, *next_packet_length, ip_port); if (len_packet == -1) { @@ -286,7 +286,7 @@ int read_packet_TCP_secure_connection( } if (len_packet != *next_packet_length) { - LOGGER_ERROR(logger, "invalid packet length: %d, expected %d", len_packet, *next_packet_length); + LOGGER_WARNING(logger, "invalid packet length: %d, expected %d", len_packet, *next_packet_length); return 0; } -- cgit v1.2.3