diff options
author | M. Kristall <mkpdev@gmail.com> | 2011-08-03 07:03:34 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:11 +0000 |
commit | 9444ac2e8eae79767188639f0db51ea5b05d37ae (patch) | |
tree | eeec65378445cc4bd3752d5e5fad414e6f20ad82 | |
parent | 93776794c920a6be1f4f671076f45dbb997b296b (diff) |
Fix incorrect test that caused some IPv6 addresses to not be recognised as such
-rw-r--r-- | src/game/g_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ] == ':' ) { |