From 08905d6792637f3e643d56aae229f30289bf9a10 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 26 Jan 2009 21:08:55 +0000 Subject: [PATCH] ITS#5789 again --- libraries/libldap/tls_g.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5