Handle the "unknown" ipv6 address form (::).

This commit is contained in:
blymn 2001-02-16 03:28:24 +00:00
parent 3ebef9c407
commit a6ae537d07
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: type_ipv6.c,v 1.2 2001/02/11 12:15:30 blymn Exp $ */
/* $NetBSD: type_ipv6.c,v 1.3 2001/02/16 03:28:24 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
@ -150,6 +150,9 @@ ipv6_check_field(FIELD *field, char *args)
goto FAIL;
p++;
if (*p == '\0')
break;
if (!isxdigit(*p))
goto FAIL;
vals[i] = strtoul(p, NULL, 16);