]> git.sur5r.net Git - openldap/commitdiff
ITS#5789 again
authorHoward Chu <hyc@openldap.org>
Mon, 26 Jan 2009 21:08:55 +0000 (21:08 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Jan 2009 21:08:55 +0000 (21:08 +0000)
libraries/libldap/tls_g.c

index 4d2f60bc1d1dad8590a5e428ab53882546efa7ee..a59e33a9acf84799a6a7af396c5727ff31737925 100644 (file)
@@ -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;