Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Dubner
OpenLDAP
Commits
e5bd309f
Commit
e5bd309f
authored
Feb 08, 2021
by
Howard Chu
Browse files
ITS#9458 must alloc new conn->c_sb after freeing old one
parent
3539fc33
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
e5bd309f
...
...
@@ -520,7 +520,12 @@ Connection * connection_init(
BER_BVZERO
(
&
c
->
c_peer_name
);
ber_sockbuf_free
(
c
->
c_sb
);
c
->
c_sb
=
NULL
;
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
);
}
c
->
c_sd
=
AC_SOCKET_INVALID
;
ldap_pvt_thread_mutex_unlock
(
&
c
->
c_mutex
);
...
...
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