projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aff772
)
Stop extension creation code core dumping.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 13 Dec 2000 13:55:03 +0000
(13:55 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 13 Dec 2000 13:55:03 +0000
(13:55 +0000)
This was caused by no initialising the buffer
to NULL when using the auto allocating version
if i2d.
crypto/x509v3/v3_conf.c
patch
|
blob
|
history
diff --git
a/crypto/x509v3/v3_conf.c
b/crypto/x509v3/v3_conf.c
index 909bc0a10a5eca66d02d8da98202c8da47bf2701..0890f898be2b8ebaa6c4ff46886948bfc9ac57d6 100644
(file)
--- 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 {