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
Nadezhda Ivanova
OpenLDAP
Commits
687ed886
Commit
687ed886
authored
Feb 21, 2007
by
Pierangelo Masarati
Browse files
don't play with URL list if connect(2) is asynchronous
parent
e5ebfe66
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
687ed886
...
...
@@ -377,11 +377,13 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
async
=
LDAP_BOOL_GET
(
&
ld
->
ld_options
,
LDAP_BOOL_CONNECT_ASYNC
);
for
(
srvp
=
srvlist
;
*
srvp
!=
NULL
;
srvp
=
&
(
*
srvp
)
->
lud_next
)
{
if
(
ldap_int_open_connection
(
ld
,
lc
,
*
srvp
,
async
)
!=
-
1
)
{
int
rc
;
rc
=
ldap_int_open_connection
(
ld
,
lc
,
*
srvp
,
async
);
if
(
rc
!=
-
1
)
{
srv
=
*
srvp
;
if
(
ld
->
ld_urllist_proc
)
{
if
(
ld
->
ld_urllist_proc
&&
(
!
async
||
rc
!=
-
2
)
)
{
ld
->
ld_urllist_proc
(
ld
,
srvlist
,
srvp
,
ld
->
ld_urllist_params
);
}
...
...
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