From: Howard Chu Date: Fri, 30 Sep 2011 10:27:19 +0000 (-0700) Subject: ITS#7006 fix MozNSS wildcard cert match X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8a5d0952ad0d85bd2af62a00183ecfde7111457c;p=openldap ITS#7006 fix MozNSS wildcard cert match --- 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 {