mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
Minor cleanup
This commit is contained in:
parent
384cbde4f5
commit
7a4b9e3c32
1 changed files with 4 additions and 4 deletions
|
|
@ -1055,6 +1055,9 @@ ldap_int_tls_start ( LDAP *ld, LDAPConn *conn, LDAPURLDesc *srv )
|
|||
host = conn->lconn_server->lud_host;
|
||||
}
|
||||
|
||||
/* avoid NULL host */
|
||||
if( host == NULL ) host = "localhost";
|
||||
|
||||
(void) ldap_pvt_tls_init();
|
||||
|
||||
/*
|
||||
|
|
@ -1069,11 +1072,8 @@ ldap_int_tls_start ( LDAP *ld, LDAPConn *conn, LDAPURLDesc *srv )
|
|||
assert( ssl != NULL );
|
||||
|
||||
/*
|
||||
* compare host with name(s) in certificate. avoid NULL host
|
||||
* compare host with name(s) in certificate
|
||||
*/
|
||||
|
||||
if( host == NULL )
|
||||
host = "localhost";
|
||||
ld->ld_errno = ldap_pvt_tls_check_hostname( ssl, host );
|
||||
if (ld->ld_errno != LDAP_SUCCESS) {
|
||||
return ld->ld_errno;
|
||||
|
|
|
|||
Loading…
Reference in a new issue