Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
6c0dc993
Commit
6c0dc993
authored
Sep 06, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls2.c
View file @
6c0dc993
...
...
@@ -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
==
'.'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment