diff options
author | Jonas Maebe <jonas.maebe@elis.ugent.be> | 2013-12-09 22:02:35 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2014-12-10 18:35:18 +0100 |
commit | 3a7581bf5ae3579e506b18f4b36c266c84890450 (patch) | |
tree | 0141483db370ec1e6c8599161ddbf6dfa413d9a2 /crypto/x509v3 | |
parent | 288b4e4f8f97069db63fdca6f6dddcf56282b03d (diff) | |
download | openssl-3a7581bf5ae3579e506b18f4b36c266c84890450.tar.gz |
tree_print: check for NULL after allocating err
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/pcy_tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509v3/pcy_tree.c b/crypto/x509v3/pcy_tree.c index 47b1bf8f27..93470c3db0 100644 --- 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 |