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
e131aa42
Commit
e131aa42
authored
Oct 29, 2005
by
Howard Chu
Browse files
ITS#4108 fix another accept/read race condition
parent
67397c46
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
e131aa42
...
...
@@ -751,6 +751,7 @@ long connection_init(
slap_sasl_open
(
c
,
0
);
slap_sasl_external
(
c
,
ssf
,
authid
);
slapd_add_internal
(
s
,
1
);
ldap_pvt_thread_mutex_unlock
(
&
c
->
c_mutex
);
ldap_pvt_thread_mutex_unlock
(
MCA_GET_CONN_MUTEX
(
s
)
);
...
...
@@ -1393,13 +1394,13 @@ void connection_client_stop(
c
->
c_close_reason
=
"?"
;
/* should never be needed */
slapd_sd_lock
();
ber_sockbuf_free
(
c
->
c_sb
);
slapd_remove
(
s
,
0
,
1
,
1
);
c
->
c_sb
=
ber_sockbuf_alloc
(
);
{
ber_len_t
max
=
sockbuf_max_incoming
;
ber_sockbuf_ctrl
(
c
->
c_sb
,
LBER_SB_OPT_SET_MAX_INCOMING
,
&
max
);
}
slapd_remove
(
s
,
0
,
1
,
1
);
connection_return
(
c
);
}
...
...
@@ -1447,7 +1448,7 @@ int connection_read_activate( ber_socket_t s )
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"connection_read_activ
i
ate(%d): submit failed (%d)
\n
"
,
"connection_read_activate(%d): submit failed (%d)
\n
"
,
s
,
rc
,
0
);
}
...
...
servers/slapd/daemon.c
View file @
e131aa42
...
...
@@ -1516,7 +1516,6 @@ slap_listener(
id
,
(
long
)
s
,
peername
,
sl
->
sl_name
.
bv_val
,
0
);
slapd_add
(
s
,
1
,
NULL
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
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