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
ingo Voss
OpenLDAP
Commits
f181388a
Commit
f181388a
authored
Mar 20, 2002
by
Howard Chu
Browse files
Fix ITS#1655, don't retrieve sd until we've checked for valid c_sb.
parent
6b0fb09e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
f181388a
...
...
@@ -234,15 +234,15 @@ static Connection* connection_get( ber_socket_t s )
ber_socket_t
i
,
sd
;
for
(
i
=
0
;
i
<
dtblsize
;
i
++
)
{
ber_sockbuf_ctrl
(
connections
[
i
].
c_sb
,
LBER_SB_OPT_GET_FD
,
&
sd
);
if
(
connections
[
i
].
c_struct_state
==
SLAP_C_UNINITIALIZED
)
{
assert
(
connections
[
i
].
c_conn_state
==
SLAP_C_INVALID
);
assert
(
connections
[
i
].
c_sb
==
0
);
break
;
}
ber_sockbuf_ctrl
(
connections
[
i
].
c_sb
,
LBER_SB_OPT_GET_FD
,
&
sd
);
if
(
connections
[
i
].
c_struct_state
==
SLAP_C_UNUSED
)
{
assert
(
connections
[
i
].
c_conn_state
==
SLAP_C_INVALID
);
assert
(
sd
==
AC_SOCKET_INVALID
);
...
...
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