summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ui
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2014-12-06 19:26:38 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2014-12-06 19:26:38 +0000
commit7d3f3643e23e8f02bd6cc1aceeb1018a2353544b (patch)
treeeca464f06ea9093714e4dcfbe6d791f96864ab1e /lib/libcrypto/ui
parent4404e2ecaebf84cf2ce7b6f226799e05002442b1 (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