Commit 6c0dc993 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9668 ldap_int_tls_connect: isdigit() requires unsigned char

parent c1f38954
Pipeline #3451 passed with stage
in 49 minutes and 9 seconds
......@@ -350,7 +350,7 @@ ldap_int_tls_connect( LDAP *ld, LDAPConn *conn, const char *host )
Sockbuf *sb = conn->lconn_sb;
int err;
tls_session *ssl = NULL;
char *sni = (char *)host;
const char *sni = host;
if ( HAS_TLS( sb )) {
ber_sockbuf_ctrl( sb, LBER_SB_OPT_GET_SSL, (void *)&ssl );
......@@ -390,8 +390,8 @@ ldap_int_tls_connect( LDAP *ld, LDAPConn *conn, const char *host )
*/
{
int numeric = 1;
char *c;
for ( c = sni; *c; c++ ) {
unsigned char *c;
for ( c = (unsigned char *)sni; *c; c++ ) {
if ( *c == ':' ) /* IPv6 address */
break;
if ( *c == '.' )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment