Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
87ba3eb8
Commit
87ba3eb8
authored
May 12, 2006
by
Pierangelo Masarati
Browse files
refine previous commits (don't leave bindings around)
parent
c1c8c05c
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-meta/bind.c
View file @
87ba3eb8
...
...
@@ -571,7 +571,9 @@ retry:;
mt
,
mc
,
candidate
,
LDAP_BACK_CONN_ISPRIV
(
mc
),
LDAP_BACK_DONTSEND
);
LDAP_BACK_CONN_BINDING_SET
(
msc
);
if
(
rc
==
LDAP_SUCCESS
)
{
LDAP_BACK_CONN_BINDING_SET
(
msc
);
}
}
else
{
/* can't do anything about it */
...
...
servers/slapd/back-meta/search.c
View file @
87ba3eb8
...
...
@@ -1229,6 +1229,16 @@ finish:;
continue
;
}
if
(
mc
)
{
ldap_pvt_thread_mutex_lock
(
&
mi
->
mi_conninfo
.
lai_mutex
);
if
(
LDAP_BACK_CONN_BINDING
(
&
mc
->
mc_conns
[
i
]
)
&&
candidates
[
i
].
sr_msgid
!=
META_MSGID_NEED_BIND
)
{
LDAP_BACK_CONN_BINDING_CLEAR
(
&
mc
->
mc_conns
[
i
]
);
}
ldap_pvt_thread_mutex_unlock
(
&
mi
->
mi_conninfo
.
lai_mutex
);
}
if
(
candidates
[
i
].
sr_matched
)
{
free
(
(
char
*
)
candidates
[
i
].
sr_matched
);
candidates
[
i
].
sr_matched
=
NULL
;
...
...
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