Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
e6bf5795
Commit
e6bf5795
authored
Mar 26, 2021
by
Howard Chu
Browse files
ITS#9498 replace asserts
Just no-op if trying to close a connection that's already being closed.
parent
829263c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
e6bf5795
...
...
@@ -763,7 +763,8 @@ void connection_closing( Connection *c, const char *why )
assert
(
connections
!=
NULL
);
assert
(
c
!=
NULL
);
assert
(
c
->
c_conn_state
!=
SLAP_C_INVALID
);
if
(
c
->
c_conn_state
==
SLAP_C_INVALID
)
return
;
/* c_mutex must be locked by caller */
...
...
@@ -796,7 +797,8 @@ connection_close( Connection *c )
assert
(
connections
!=
NULL
);
assert
(
c
!=
NULL
);
assert
(
c
->
c_conn_state
==
SLAP_C_CLOSING
);
if
(
c
->
c_conn_state
!=
SLAP_C_CLOSING
)
return
;
/* NOTE: c_mutex should be locked by caller */
...
...
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