summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_ciph.c
diff options
context:
space:
mode:
authordoug <>2014-12-06 19:26:37 +0000
committerdoug <>2014-12-06 19:26:37 +0000
commite0d29ce4ca3a66fb79a3bdb9e13b5c6ea1e19604 (patch)
tree4eb8f74a1ef6964a0f0914c23f4236f1b335720b /src/lib/libssl/ssl_ciph.c
parent6023656d8c45eb723b7d115cebbb798c866abf5f (diff)
downloadopenbsd-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