Avoid possible memleak in X509_policy_check()
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 09:08:45 +0000 (11:08 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 6 Jul 2017 07:15:41 +0000 (09:15 +0200)
commit58314197b54cc1417cfa62d1987462f72a2559e0
treec73c1e0351f085d4c2a8529088fc45c4fdbfbe69
parent95f966b7954adec468e1e86c3c57d03768990126
Avoid possible memleak in X509_policy_check()

When tree_calculate_user_set() fails, a jump to error failed to
deallocate a possibly allocated |auth_nodes|.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3851)
crypto/x509v3/pcy_tree.c