Oops should check zero_pos >= 0.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 8 Dec 2008 19:13:06 +0000 (19:13 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 8 Dec 2008 19:13:06 +0000 (19:13 +0000)
crypto/x509v3/v3_utl.c

index 1a866aa..706a2b4 100644 (file)
@@ -739,7 +739,7 @@ static int ipv6_from_asc(unsigned char *v6, const char *in)
 
        /* Format result */
 
-       if (v6stat.zero_pos > 0)
+       if (v6stat.zero_pos >= 0)
                {
                /* Copy initial part */
                memcpy(v6, v6stat.tmp, v6stat.zero_pos);