diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2003-05-28 16:57:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2003-05-28 16:57:22 +0000 |
commit | ff160dba54410989865b6abdc5186b42abc80845 (patch) | |
tree | 55f8db85312cddf69c2dc2354b409aa9cf55938f /crypto/x509v3 | |
parent | fb5b7317a7e73c18a057995e3e008f95eab99e1b (diff) |
PR: 631
Submitted by: Doug Sauder <dws+001@hunnysoft.com>
Fix bug in X509V3_get_d2i() when idx in not NULL.
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |