mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#9458 must alloc new conn->c_sb after freeing old one
This commit is contained in:
parent
3539fc3321
commit
e5bd309fb2
1 changed files with 6 additions and 1 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue