diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2014-12-06 19:26:38 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2014-12-06 19:26:38 +0000 |
commit | 7d3f3643e23e8f02bd6cc1aceeb1018a2353544b (patch) | |
tree | eca464f06ea9093714e4dcfbe6d791f96864ab1e /lib/libcrypto/ui | |
parent | 4404e2ecaebf84cf2ce7b6f226799e05002442b1 (diff) |
Avoid modifying input on failure in X509_(TRUST|PURPOSE)_add.
If X509_TRUST_add() or X509_PURPOSE_add() fail, they will leave the
object in an inconsistent state since the name is already freed.
This commit avoids changing the original name unless the *_add() call
will succeed.
Based on BoringSSL's commit: ab2815eaff6219ef57aedca2f7b1b72333c27fd0
ok miod@
Diffstat (limited to 'lib/libcrypto/ui')
0 files changed, 0 insertions, 0 deletions