]> 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@openldap.org>
Wed, 11 Oct 2017 19:32:56 +0000 (12:32 -0700)
commit73d483243c1b09adcc209f1a19281c3cb0c3e440
tree740538bea1b260768a7e47d2e29ccbfb3681d024
parent9733303d999aab403086f65664a5afa245519145
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