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:
1ebdc48
)
PR: 1856
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 9 Mar 2009 13:07:16 +0000
(13:07 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 9 Mar 2009 13:07:16 +0000
(13:07 +0000)
Check return value of PKCS12_add_safes()
crypto/pkcs12/p12_crt.c
patch
|
blob
|
history
diff --git
a/crypto/pkcs12/p12_crt.c
b/crypto/pkcs12/p12_crt.c
index e863de52cef463a78886c1f73c20bd5101171428..9522342fa5e188ab2ca558c9ae70fc9d81bcc05e 100644
(file)
--- a/
crypto/pkcs12/p12_crt.c
+++ b/
crypto/pkcs12/p12_crt.c
@@
-170,6
+170,9
@@
PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert,
p12 = PKCS12_add_safes(safes, 0);
+ if (!p12)
+ goto err;
+
sk_PKCS7_pop_free(safes, PKCS7_free);
safes = NULL;