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:
288b4e4
)
tree_print: check for NULL after allocating err
author
Jonas Maebe
<jonas.maebe@elis.ugent.be>
Mon, 9 Dec 2013 21:02:35 +0000
(22:02 +0100)
committer
Kurt Roeckx
<kurt@roeckx.be>
Wed, 10 Dec 2014 17:35:18 +0000
(18:35 +0100)
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/x509v3/pcy_tree.c
patch
|
blob
|
history
diff --git
a/crypto/x509v3/pcy_tree.c
b/crypto/x509v3/pcy_tree.c
index 47b1bf8f27163d5ce3aa279804d9da1755f14fb2..93470c3db03d09addcd47a8d5b6bd1efc4aecb2b 100644
(file)
--- a/
crypto/x509v3/pcy_tree.c
+++ b/
crypto/x509v3/pcy_tree.c
@@
-101,6
+101,8
@@
static void tree_print(char *str, X509_POLICY_TREE *tree,
int i;
BIO *err;
err = BIO_new_fp(stderr, BIO_NOCLOSE);
+ if (err == NULL)
+ return;
if (!curr)
curr = tree->levels + tree->nlevel;
else