From 79b9209883f1492919384b9adeb3fb6a69a47aa5 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Fri, 20 Sep 2013 14:38:02 +0100 Subject: [PATCH] More diagnostics for invalid OIDs. --- crypto/asn1/a_object.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crypto/asn1/a_object.c b/crypto/asn1/a_object.c index 3978c9150d..ca73a281f5 100644 --- a/crypto/asn1/a_object.c +++ b/crypto/asn1/a_object.c @@ -248,7 +248,11 @@ int i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a) i2t_ASN1_OBJECT(p,i + 1,a); } if (i <= 0) - return BIO_write(bp, "", 9); + { + i = BIO_write(bp, "", 9); + i += BIO_dump(bp, (const char *)a->data, a->length); + return i; + } BIO_write(bp,p,i); if (p != buf) OPENSSL_free(p); -- 2.25.1