Skip to content

Commit

Permalink
Fix incorrect test that caused some IPv6 addresses to not be recognis…
Browse files Browse the repository at this point in the history
…ed as such
  • Loading branch information
msk committed Aug 3, 2011
1 parent fe8d688 commit 85894fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/g_utils.c
Expand Up @@ -915,7 +915,7 @@ static const char *addr6parse( const char *str, addr_t *addr )
}
if( !str[ i ] )
break;
if( str[ i ] != ':' || i == 8 )
if( str[ i ] != ':' || before + after == 8 )
break;
if( str[ i + 1 ] == ':' )
{
Expand Down

0 comments on commit 85894fc

Please sign in to comment.