diff options
-rw-r--r-- | toxcore/net_crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 84276c62..269d03a3 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -1321,8 +1321,8 @@ static void connection_kill(Net_Crypto *c, int crypt_connection_id, void *userda | |||
1321 | * return -1 on failure. | 1321 | * return -1 on failure. |
1322 | * return 0 on success. | 1322 | * return 0 on success. |
1323 | */ | 1323 | */ |
1324 | static int handle_data_packet_helper(Net_Crypto *c, int crypt_connection_id, const uint8_t *packet, uint16_t length, | 1324 | static int handle_data_packet_core(Net_Crypto *c, int crypt_connection_id, const uint8_t *packet, uint16_t length, |
1325 | bool udp, void *userdata) | 1325 | bool udp, void *userdata) |
1326 | { | 1326 | { |
1327 | if (length > MAX_CRYPTO_PACKET_SIZE || length <= CRYPTO_DATA_PACKET_MIN_SIZE) { | 1327 | if (length > MAX_CRYPTO_PACKET_SIZE || length <= CRYPTO_DATA_PACKET_MIN_SIZE) { |
1328 | return -1; | 1328 | return -1; |
@@ -1542,7 +1542,7 @@ static int handle_packet_connection(Net_Crypto *c, int crypt_connection_id, cons | |||
1542 | 1542 | ||
1543 | case NET_PACKET_CRYPTO_DATA: { | 1543 | case NET_PACKET_CRYPTO_DATA: { |
1544 | if (conn->status == CRYPTO_CONN_NOT_CONFIRMED || conn->status == CRYPTO_CONN_ESTABLISHED) { | 1544 | if (conn->status == CRYPTO_CONN_NOT_CONFIRMED || conn->status == CRYPTO_CONN_ESTABLISHED) { |
1545 | return handle_data_packet_helper(c, crypt_connection_id, packet, length, udp, userdata); | 1545 | return handle_data_packet_core(c, crypt_connection_id, packet, length, udp, userdata); |
1546 | } | 1546 | } |
1547 | 1547 | ||
1548 | return -1; | 1548 | return -1; |