diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-10-11 01:30:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-10-11 01:30:04 +0000 |
commit | 56a3fec1b12d9a95f9b79ce7918fe619488caa9a (patch) | |
tree | 3fb749ffd956c6f2e25b9eb905dcfc017be45499 /crypto/x509v3/v3_lib.c | |
parent | 4654ef985b58e2cf7c153057ffc6fda8ab186543 (diff) |
Add EX_DATA support to X509.
Fix a bug in the X509_get_d2i() functions which didn't check if crit was NULL.
Diffstat (limited to 'crypto/x509v3/v3_lib.c')
-rw-r--r-- | crypto/x509v3/v3_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_lib.c b/crypto/x509v3/v3_lib.c index 06def2a659..6219d27883 100644 --- a/crypto/x509v3/v3_lib.c +++ b/crypto/x509v3/v3_lib.c @@ -219,7 +219,7 @@ void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx) } if(found_ex) { /* Found it */ - *crit = found_ex->critical; + if(crit) *crit = found_ex->critical; return X509V3_EXT_d2i(found_ex); } |