diff options
author | doug <> | 2014-12-06 19:26:37 +0000 |
---|---|---|
committer | doug <> | 2014-12-06 19:26:37 +0000 |
commit | e0d29ce4ca3a66fb79a3bdb9e13b5c6ea1e19604 (patch) | |
tree | 4eb8f74a1ef6964a0f0914c23f4236f1b335720b /src/lib/libssl/ssl_ciph.c | |
parent | 6023656d8c45eb723b7d115cebbb798c866abf5f (diff) | |
download | openbsd-e0d29ce4ca3a66fb79a3bdb9e13b5c6ea1e19604.tar.gz openbsd-e0d29ce4ca3a66fb79a3bdb9e13b5c6ea1e19604.tar.bz2 openbsd-e0d29ce4ca3a66fb79a3bdb9e13b5c6ea1e19604.zip |
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 'src/lib/libssl/ssl_ciph.c')
0 files changed, 0 insertions, 0 deletions