Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
15573c72
Commit
15573c72
authored
Apr 25, 2022
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Apr 26, 2022
Browse files
ITS#9831 Advance connections[index] correctly
parent
47069fee
Pipeline
#4282
passed with stage
in 33 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
15573c72
...
...
@@ -871,13 +871,14 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
for
(;
*
index
<
dtblsize
;
(
*
index
)
++
)
{
if
(
connections
[
*
index
].
c_sb
)
{
c
=
&
connections
[
(
*
index
)
++
];
c
=
&
connections
[
*
index
];
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
;
}
(
*
index
)
++
;
break
;
}
}
...
...
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