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
Tero Saarni
OpenLDAP
Commits
f355aa64
Commit
f355aa64
authored
May 13, 2021
by
Tero Saarni
Browse files
ITS#9468 do not arm expire timer for connections that are already tainted
parent
efb84b3e
Pipeline
#2673
passed with stage
in 56 minutes and 31 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldap/bind.c
View file @
f355aa64
...
...
@@ -3122,6 +3122,11 @@ ldap_back_conn_prune( ldapinfo_t *li )
while
(
lc
)
{
ldapconn_t
*
next
=
LDAP_TAILQ_NEXT
(
lc
,
lc_q
);
if
(
LDAP_BACK_CONN_TAINTED
(
lc
)
)
{
continue
;
}
time_t
conn_expires
=
ldap_back_conn_expire_time
(
li
,
lc
);
if
(
now
>=
conn_expires
)
{
...
...
@@ -3149,6 +3154,11 @@ ldap_back_conn_prune( ldapinfo_t *li )
while
(
edge
)
{
TAvlnode
*
next
=
ldap_tavl_next
(
edge
,
TAVL_DIR_RIGHT
);
ldapconn_t
*
lc
=
(
ldapconn_t
*
)
edge
->
avl_data
;
if
(
LDAP_BACK_CONN_TAINTED
(
lc
)
)
{
continue
;
}
time_t
conn_expires
=
ldap_back_conn_expire_time
(
li
,
lc
);
if
(
now
>=
conn_expires
)
{
...
...
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