]> git.sur5r.net Git - openldap/commit
ITS#7373 - TLS: do not reuse tls_session if hostname check fails
authorJan Vcelak <jvcelak@redhat.com>
Tue, 28 Aug 2012 14:57:54 +0000 (16:57 +0200)
committerQuanah Gibson-Mount <quanah@ub16.quanah.org>
Fri, 6 Oct 2017 17:44:07 +0000 (10:44 -0700)
commitacc5b8866192f899af2bb7012f5d423d5296cc03
treea5ead1faf1679c090b0483871f4a963d7b4b92a2
parent08492987a0faf3d8d468d9c8fce2f670e130977c
ITS#7373 - TLS: do not reuse tls_session if hostname check fails

If multiple servers are specified, the connection to the first one
succeeds, and the hostname verification fails, *tls_session is not
dropped, but reused when connecting to the second server.

This is a problem with Mozilla NSS backend because another handshake
cannot be performed on the same file descriptor. From this reason,
hostname checking was moved into ldap_int_tls_connect() before
connection error handling.
libraries/libldap/tls2.c