From 36124c715a59759e68934db2575862566f1fb6bd Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 4 Nov 2008 11:21:52 +0000 Subject: [PATCH] ITS#5789 GNUtls - allow CN matches against IP addresses --- libraries/libldap/tls.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5