From 9f0c9134c1f4ee301989dc774b3eb6a63cf1df2c Mon Sep 17 00:00:00 2001 From: Dan Bechard Date: Sun, 8 Sep 2024 19:53:05 -0400 Subject: [PATCH] Fix incorrect expected connection request packet length in error message Signed-off-by: Dan Bechard --- netcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netcode.c b/netcode.c index 58a5fcf..4dd65cf 100755 --- a/netcode.c +++ b/netcode.c @@ -1561,7 +1561,7 @@ void * netcode_read_packet( uint8_t * buffer, if ( buffer_length != 1 + NETCODE_VERSION_INFO_BYTES + 8 + 8 + NETCODE_CONNECT_TOKEN_NONCE_BYTES + NETCODE_CONNECT_TOKEN_PRIVATE_BYTES ) { - netcode_printf( NETCODE_LOG_LEVEL_DEBUG, "ignored connection request packet. bad packet length (expected %d, got %d)\n", 1 + NETCODE_VERSION_INFO_BYTES + 8 + 8 + 8 + NETCODE_CONNECT_TOKEN_PRIVATE_BYTES, buffer_length ); + netcode_printf( NETCODE_LOG_LEVEL_DEBUG, "ignored connection request packet. bad packet length (expected %d, got %d)\n", 1 + NETCODE_VERSION_INFO_BYTES + 8 + 8 + NETCODE_CONNECT_TOKEN_NONCE_BYTES + NETCODE_CONNECT_TOKEN_PRIVATE_BYTES, buffer_length ); return NULL; }