mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Fix last commit: cast strcasecmp unsigned char* to char*
This commit is contained in:
parent
3802aa5483
commit
791035d93f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user