summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 1a866aaa83..706a2b4b42 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);