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
6c6e187b
Commit
6c6e187b
authored
Jul 27, 2010
by
Pierangelo Masarati
Browse files
do not alter ld_nextref_proc (ITS#6602)
parent
0480296a
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
6c6e187b
...
...
@@ -1044,6 +1044,7 @@ ldap_chase_v3referrals( LDAP *ld, LDAPRequest *lr, char **refs, int sref, char *
LDAPConn
*
lc
;
int
rc
,
count
,
i
,
j
,
id
;
LDAPreqinfo
rinfo
;
LDAP_NEXTREF_PROC
*
nextref_proc
=
ld
->
ld_nextref_proc
?
ld
->
ld_nextref_proc
:
ldap_int_nextref
;
ld
->
ld_errno
=
LDAP_SUCCESS
;
/* optimistic */
*
hadrefp
=
0
;
...
...
@@ -1079,15 +1080,12 @@ ldap_chase_v3referrals( LDAP *ld, LDAPRequest *lr, char **refs, int sref, char *
refarray
=
refs
;
refs
=
NULL
;
if
(
ld
->
ld_nextref_proc
==
NULL
)
{
ld
->
ld_nextref_proc
=
ldap_int_nextref
;
}
/* parse out & follow referrals */
/* NOTE: if nextref_proc == ldap_int_nextref, params is ignored */
i
=
-
1
;
for
(
ld
->
ld_
nextref_proc
(
ld
,
&
refarray
,
&
i
,
ld
->
ld_nextref_params
);
for
(
nextref_proc
(
ld
,
&
refarray
,
&
i
,
ld
->
ld_nextref_params
);
i
!=
-
1
;
ld
->
ld_
nextref_proc
(
ld
,
&
refarray
,
&
i
,
ld
->
ld_nextref_params
)
)
nextref_proc
(
ld
,
&
refarray
,
&
i
,
ld
->
ld_nextref_params
)
)
{
/* Parse the referral URL */
...
...
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