From 791035d93f3997752b09d738eefbef7f7dfc189e Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 7 Aug 2009 21:46:25 +0000 Subject: [PATCH] Fix last commit: cast strcasecmp unsigned char* to char* --- libraries/libldap/tls_o.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.5