From: Howard Chu Date: Tue, 4 Nov 2008 11:21:52 +0000 (+0000) Subject: ITS#5789 GNUtls - allow CN matches against IP addresses X-Git-Tag: ACLCHECK_0~1154 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=36124c715a59759e68934db2575862566f1fb6bd;p=openldap ITS#5789 GNUtls - allow CN matches against IP addresses --- diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index b042aec9f4..9b008ddb9c 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -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;