From a6ae537d07d524325247a02bc0153f2dfbaebe1e Mon Sep 17 00:00:00 2001 From: blymn Date: Fri, 16 Feb 2001 03:28:24 +0000 Subject: [PATCH] Handle the "unknown" ipv6 address form (::). --- lib/libform/type_ipv6.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libform/type_ipv6.c b/lib/libform/type_ipv6.c index a5225aa6d503..ce7a1ab88b24 100644 --- a/lib/libform/type_ipv6.c +++ b/lib/libform/type_ipv6.c @@ -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);