Fix broken loading of client CAs
authorAndreas Karlsson <andreas@proxel.se>
Fri, 1 Jul 2016 23:19:39 +0000 (01:19 +0200)
committerRich Salz <rsalz@openssl.org>
Sat, 2 Jul 2016 19:30:13 +0000 (15:30 -0400)
commit9d6daf99c286d260e50278f63ddb7d164462256e
tree6e1f87e2da166a1cce848c4421f6f75053317a9e
parent3426de2262caee3283b88c40308b99009182fcd1
Fix broken loading of client CAs

The SSL_load_client_CA_file() failed to load any CAs due to an
inccorrect assumption about the return value of lh_*_insert(). The
return value when inserting into a hash is the old value of the key.

The bug was introduced in 3c82e437bb3af822ea13cd5a24bab0745c556246.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1279)
ssl/ssl_cert.c