Skip to content
Snippets Groups Projects
Commit 791bc37c authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9668 ldap_int_tls_connect: isdigit() requires unsigned char

parent 7b5f44a2
No related branches found
No related tags found
No related merge requests found
......@@ -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 == '.' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment