Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
616e5bf1
Commit
616e5bf1
authored
Mar 11, 2021
by
Howard Chu
Browse files
ITS#9498 connection_next: fix validity check
parent
c7763538
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
616e5bf1
...
...
@@ -919,11 +919,11 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
ldap_pvt_thread_mutex_unlock
(
&
connections_mutex
);
ldap_pvt_thread_mutex_lock
(
&
c
->
c_mutex
);
ldap_pvt_thread_mutex_lock
(
&
connections_mutex
);
if
(
c
->
c_struct_state
!=
SLAP_C_USED
)
{
ldap_pvt_thread_mutex_unlock
(
&
c
->
c_
mutex
);
c
=
NULL
;
continue
;
}
}
if
(
c
->
c_
struct_state
!=
SLAP_C_USED
)
{
ldap_pvt_thread_mutex_unlock
(
&
c
->
c_mutex
)
;
c
=
NULL
;
continue
;
}
assert
(
c
->
c_conn_state
!=
SLAP_C_INVALID
);
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