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
Ondřej Kuzník
OpenLDAP
Commits
bebfe2b0
Commit
bebfe2b0
authored
Apr 25, 2022
by
Ondřej Kuzník
Browse files
ITS#9831 Advance connections[index] correctly
parent
6657caaa
Pipeline
#4269
passed with stage
in 46 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
bebfe2b0
...
...
@@ -869,13 +869,12 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
c
=
NULL
;
for
(;
*
index
<
dtblsize
;
(
*
index
)
++
)
{
if
(
connections
[
*
index
].
c_sb
)
{
c
=
&
connections
[(
*
index
)
++
];
for
(;
*
index
<
dtblsize
;
c
=
NULL
)
{
c
=
&
connections
[
(
*
index
)
++
];
if
(
c
->
c_sb
)
{
ldap_pvt_thread_mutex_lock
(
&
c
->
c_mutex
);
if
(
c
->
c_conn_state
==
SLAP_C_INVALID
)
{
ldap_pvt_thread_mutex_unlock
(
&
c
->
c_mutex
);
c
=
NULL
;
continue
;
}
break
;
...
...
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