Skip to content

Commit

Permalink
Merge pull request #127 from dbechrd/patch-3
Browse files Browse the repository at this point in the history
Fix incorrect expected connection request packet length in error message
  • Loading branch information
gafferongames authored Sep 9, 2024
2 parents 76ada59 + 9f0c913 commit dcd0334
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 dcd0334

Please sign in to comment.