From: Dr. Stephen Henson Date: Tue, 21 Feb 2006 01:00:08 +0000 (+0000) Subject: Print out if an OID value is invalid. X-Git-Tag: OpenSSL_0_9_8k^2~1543 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=350a404cb8b4524bab6b039e03b61b9db9fa8821;p=oweals%2Fopenssl.git Print out if an OID value is invalid. --- diff --git a/crypto/asn1/a_object.c b/crypto/asn1/a_object.c index 0fbc368f0d..a36356e344 100644 --- a/crypto/asn1/a_object.c +++ b/crypto/asn1/a_object.c @@ -246,6 +246,8 @@ int i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a) return -1; i2t_ASN1_OBJECT(p,i + 1,a); } + if (i <= 0) + return BIO_write(bp, "", 9); BIO_write(bp,p,i); if (p != buf) OPENSSL_free(p);