Skip to content

Commit

Permalink
Fix incorrect expected connection request packet length in error message
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Bechard <[email protected]>
  • Loading branch information
dbechrd authored Sep 8, 2024
1 parent 3ffe69a commit 9f0c913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9f0c913

Please sign in to comment.