aboutsummaryrefslogtreecommitdiff
path: root/crypto/x509v3/v3_utl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-12-08 19:13:06 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-12-08 19:13:06 +0000
commit9d44cd1642c85c95ffb5ac0cfc2af800291fd49a (patch)
tree690f696a32214ac89aa3573a91a52ec2df373684 /crypto/x509v3/v3_utl.c
parent1d4e879106676c68d6eb23319bfa412c5431ce53 (diff)
downloadopenssl-9d44cd1642c85c95ffb5ac0cfc2af800291fd49a.zip
openssl-9d44cd1642c85c95ffb5ac0cfc2af800291fd49a.tar.gz
openssl-9d44cd1642c85c95ffb5ac0cfc2af800291fd49a.tar.bz2
Oops should check zero_pos >= 0.
Diffstat (limited to 'crypto/x509v3/v3_utl.c')
-rw-r--r--crypto/x509v3/v3_utl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c
index 1a866aa..706a2b4 100644
--- a/crypto/x509v3/v3_utl.c
+++ b/crypto/x509v3/v3_utl.c
@@ -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);