From 8a5d0952ad0d85bd2af62a00183ecfde7111457c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 30 Sep 2011 03:27:19 -0700 Subject: [PATCH] ITS#7006 fix MozNSS wildcard cert match --- libraries/libldap/tls_m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c index 9447db290f..37b465a490 100644 --- a/libraries/libldap/tls_m.c +++ b/libraries/libldap/tls_m.c @@ -2729,7 +2729,7 @@ altfail: if ( av->len == nlen && !strncasecmp( name, (char *)av->data, nlen )) { ret = LDAP_SUCCESS; } else if ( av->data[0] == '*' && av->data[1] == '.' && - domain && dlen == av->len - 1 && !strncasecmp( name, + domain && dlen == av->len - 1 && !strncasecmp( domain, (char *)(av->data+1), dlen )) { ret = LDAP_SUCCESS; } else { -- 2.39.5