From: Howard Chu Date: Mon, 26 Jan 2009 21:08:55 +0000 (+0000) Subject: ITS#5789 again X-Git-Tag: ACLCHECK_0~942 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08905d6792637f3e643d56aae229f30289bf9a10;p=openldap ITS#5789 again --- diff --git a/libraries/libldap/tls_g.c b/libraries/libldap/tls_g.c index 4d2f60bc1d..a59e33a9ac 100644 --- a/libraries/libldap/tls_g.c +++ b/libraries/libldap/tls_g.c @@ -651,6 +651,7 @@ tlsg_session_chkhost( LDAP *ld, tls_session *session, 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;