From: Hallvard Furuseth Date: Fri, 7 Aug 2009 21:46:25 +0000 (+0000) Subject: Fix last commit: cast strcasecmp unsigned char* to char* X-Git-Tag: ACLCHECK_0~352 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=791035d93f3997752b09d738eefbef7f7dfc189e;p=openldap Fix last commit: cast strcasecmp unsigned char* to char* --- diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index 0c0645fede..90cade8f4e 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -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; } }