Fix from HEAD.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 8 Dec 2008 19:13:57 +0000 (19:13 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 8 Dec 2008 19:13:57 +0000 (19:13 +0000)
crypto/x509v3/v3_utl.c

index 941688826b4c73227b01bc81889a80c0aebc3838..a4236bbb6d0a4df08c8809bc545ce07e75ef0a72 100644 (file)
@@ -736,7 +736,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);