cidr.c: Fix loop handling in inet_pton6 to prevent invalid chars being silently ignored