Avoid possible memleak in X509_policy_check()
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 09:03:34 +0000 (11:03 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 09:14:07 +0000 (11:14 +0200)
commit67f060acefae34d820ccdb2f560d86ed10633500
tree0def3390a160407f79757d2270ec454a073cc97b
parentefc21a513f1c5227cb56372fa65270f49d234b09
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: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/3850)
crypto/x509v3/pcy_tree.c