From: Dr. Stephen Henson Date: Wed, 28 May 2003 16:57:22 +0000 (+0000) Subject: PR: 631 X-Git-Tag: OpenSSL_0_9_7c~101 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ff160dba54410989865b6abdc5186b42abc80845;p=oweals%2Fopenssl.git PR: 631 Submitted by: Doug Sauder Fix bug in X509V3_get_d2i() when idx in not NULL. --- diff --git a/crypto/x509v3/v3_lib.c b/crypto/x509v3/v3_lib.c index 482ca8ccf5..ca5a4a4a57 100644 --- a/crypto/x509v3/v3_lib.c +++ b/crypto/x509v3/v3_lib.c @@ -202,6 +202,7 @@ void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx) if(OBJ_obj2nid(ex->object) == nid) { if(idx) { *idx = i; + found_ex = ex; break; } else if(found_ex) { /* Found more than one */