mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5789 GNUtls - allow CN matches against IP addresses
This commit is contained in:
parent
24078323e2
commit
36124c715a
@ -1894,6 +1894,7 @@ ldap_pvt_tls_check_hostname( LDAP *ld, void *s, const char *name_in )
|
||||
|
||||
} else {
|
||||
ret = LDAP_LOCAL_ERROR;
|
||||
if ( !len1 ) len1 = strlen( name );
|
||||
if ( len1 == altnamesize && strncasecmp(name, altname, altnamesize) == 0 ) {
|
||||
ret = LDAP_SUCCESS;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user