From: Dr. Stephen Henson Date: Mon, 8 Dec 2008 19:13:06 +0000 (+0000) Subject: Oops should check zero_pos >= 0. X-Git-Tag: OpenSSL_0_9_8k^2~135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d44cd1642c85c95ffb5ac0cfc2af800291fd49a;p=oweals%2Fopenssl.git Oops should check zero_pos >= 0. --- 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);