]> git.sur5r.net Git - openldap/commitdiff
Fix last commit: cast strcasecmp unsigned char* to char*
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 7 Aug 2009 21:46:25 +0000 (21:46 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 7 Aug 2009 21:46:25 +0000 (21:46 +0000)
libraries/libldap/tls_o.c

index 0c0645fede89dc593def0d383b99557225c9f8f6..90cade8f4ef6b1639d0baf90f3b44a775efbd8de 100644 (file)
@@ -612,7 +612,7 @@ no_cn:
                                _("TLS: unable to get CN from peer certificate"));
 
                } else if ( cn->length == nlen &&
-                       strncasecmp( name, cn->data, nlen ) == 0 ) {
+                       strncasecmp( name, (char *) cn->data, nlen ) == 0 ) {
                        ret = LDAP_SUCCESS;
 
                } else if (( cn->data[0] == '*' ) && ( cn->data[1] == '.' )) {
@@ -624,7 +624,7 @@ no_cn:
 
                                /* Is this a wildcard match? */
                                if ((dlen == cn->length-1) &&
-                                       !strncasecmp(domain, &cn->data[1], dlen)) {
+                                       !strncasecmp(domain, (char *) &cn->data[1], dlen)) {
                                        ret = LDAP_SUCCESS;
                                }
                        }