diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-12-13 13:55:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-12-13 13:55:03 +0000 |
commit | 36ac656a1ba06e29598dae7a2918bb0cc5160f70 (patch) | |
tree | 67ab4514e58ef913f7f7763eb0b8985d819d642e /crypto/x509v3/v3_conf.c | |
parent | 2aff7727f700384de6ced15a97888a8405cb1214 (diff) |
Stop extension creation code core dumping.
This was caused by no initialising the buffer
to NULL when using the auto allocating version
if i2d.
Diffstat (limited to 'crypto/x509v3/v3_conf.c')
-rw-r--r-- | crypto/x509v3/v3_conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509v3/v3_conf.c b/crypto/x509v3/v3_conf.c index 909bc0a10a..0890f898be 100644 --- a/crypto/x509v3/v3_conf.c +++ b/crypto/x509v3/v3_conf.c @@ -168,6 +168,7 @@ static X509_EXTENSION *do_ext_i2d(X509V3_EXT_METHOD *method, int ext_nid, X509_EXTENSION *ext; /* Convert internal representation to DER */ if(method->it) { + ext_der = NULL; ext_len = ASN1_item_i2d(ext_struc, &ext_der, method->it); if(ext_len < 0) goto merr; } else { |