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 1a866aaa83b24f9b9cb4dc0c630fa62a35e63de9..706a2b4b42c048a805d25f29f7a924f2df8c3f55 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);