diff options
author | doug <> | 2014-12-06 19:26:37 +0000 |
---|---|---|
committer | doug <> | 2014-12-06 19:26:37 +0000 |
commit | c0f239a5bb562e1815cb2ae500592f95db239eda (patch) | |
tree | 4eb8f74a1ef6964a0f0914c23f4236f1b335720b /src/lib/libssl/ssl_ciph.c | |
parent | a542c383dc8a53c6780cf3024614ba420ab0d455 (diff) | |
download | openbsd-c0f239a5bb562e1815cb2ae500592f95db239eda.tar.gz openbsd-c0f239a5bb562e1815cb2ae500592f95db239eda.tar.bz2 openbsd-c0f239a5bb562e1815cb2ae500592f95db239eda.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