]> git.sur5r.net Git - openldap/commitdiff
ITS#7006 fix MozNSS wildcard cert match
authorHoward Chu <hyc@openldap.org>
Fri, 30 Sep 2011 10:27:19 +0000 (03:27 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 30 Sep 2011 10:27:19 +0000 (03:27 -0700)
libraries/libldap/tls_m.c

index 9447db290f9eeeb7d652da0d7768a9885ceed267..37b465a490fbbd6d72282bcf760298cfbd7b8d84 100644 (file)
@@ -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 {