diff options
Diffstat (limited to 'nss/digits_dots.c')
-rw-r--r-- | nss/digits_dots.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nss/digits_dots.c b/nss/digits_dots.c index b86f66c..c953fc6 100644 --- a/nss/digits_dots.c +++ b/nss/digits_dots.c @@ -236,7 +236,10 @@ { if (!*cp) { - if (*--cp == '.') break; + if (*--cp == '.') + break; + if (!strchr (name, ':')) + break; /* All-IPv6-legal, no dot at the end. Fake up a hostent as if we'd actually done a lookup. */ |