summaryrefslogtreecommitdiff
path: root/protocols/Tox/libtox/src/toxcore/TCP_common.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-23 19:38:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-23 19:38:07 +0300
commitabacfceb23fc41d0b632a7985c2291c02225b432 (patch)
tree186f0c918c8bf671e0bec368f9ff27fd2352d47c /protocols/Tox/libtox/src/toxcore/TCP_common.c
parenta8249e73fa598dde2fbde216c7e8f416ebdbf88d (diff)
libtox synced with their master, it could help to fix #3649
Diffstat (limited to 'protocols/Tox/libtox/src/toxcore/TCP_common.c')
-rw-r--r--protocols/Tox/libtox/src/toxcore/TCP_common.c4
1 files changed, 2 insertions, 2 deletions
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;
}