Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
745b572f
Commit
745b572f
authored
Nov 27, 2002
by
Kurt Zeilenga
Browse files
referral tweaks
parent
68a53b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
745b572f
...
...
@@ -649,15 +649,15 @@ ldap_free_request( LDAP *ld, LDAPRequest *lr )
lr
->
lr_origid
,
lr
->
lr_msgid
,
0
);
#endif
/* free all referrals (child requests) */
while
(
lr
->
lr_child
)
ldap_free_request
(
ld
,
lr
->
lr_child
);
if
(
lr
->
lr_parent
!=
NULL
)
{
--
lr
->
lr_parent
->
lr_outrefcnt
;
for
(
ttmplr
=
&
lr
->
lr_parent
->
lr_child
;
*
ttmplr
&&
*
ttmplr
!=
lr
;
ttmplr
=
&
(
*
ttmplr
)
->
lr_refnext
);
if
(
*
ttmplr
==
lr
)
*
ttmplr
=
lr
->
lr_refnext
;
}
else
{
/* free all referrals (child requests) */
while
(
lr
->
lr_child
)
ldap_free_request
(
ld
,
lr
->
lr_child
);
}
ldap_free_request_int
(
ld
,
lr
);
}
...
...
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