Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
a5a8739b
Commit
a5a8739b
authored
Jan 31, 2019
by
Quanah Gibson-Mount
Browse files
ITS#8957 - Fix ASYNC TLS
Fix ASYNC TLS by correctly handling a return code of -2 in addition to 0
parent
f42f92b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/open.c
View file @
a5a8739b
...
...
@@ -440,7 +440,7 @@ ldap_int_open_connection(
#endif
#ifdef HAVE_TLS
if
(
rc
==
0
&&
(
ld
->
ld_options
.
ldo_tls_mode
==
LDAP_OPT_X_TLS_HARD
||
if
(
(
rc
==
0
||
rc
==
-
2
)
&&
(
ld
->
ld_options
.
ldo_tls_mode
==
LDAP_OPT_X_TLS_HARD
||
strcmp
(
srv
->
lud_scheme
,
"ldaps"
)
==
0
))
{
++
conn
->
lconn_refcnt
;
/* avoid premature free */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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