From 9444ac2e8eae79767188639f0db51ea5b05d37ae Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Wed, 3 Aug 2011 07:03:34 +0000 Subject: Fix incorrect test that caused some IPv6 addresses to not be recognised as such --- src/game/g_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/g_utils.c b/src/game/g_utils.c index d4a9ef6a..45a00779 100644 --- a/src/game/g_utils.c +++ b/src/game/g_utils.c @@ -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 ] == ':' ) { -- cgit