diff --git a/src/src/string.c b/src/src/string.c index 3cacccce9a..b566bcc64c 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -112,7 +112,7 @@ if (Ustrchr(s, ':') != NULL) component. */ if (!isxdigit(*s++)) return 0; - if (isxdigit(*s) && isxdigit(*(++s)) && isxdigit(*(++s))) s++; + if (isxdigit(*s) && isxdigit(*(++s)) && isxdigit(*(++s)) && isxdigit(*(++s))) return 0; /* If the component is terminated by colon and there is more to follow, skip over the colon. If there is no more to follow the address is