mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
enable max_incoming checks
This commit is contained in:
parent
34773a351d
commit
3691e61aab
@ -81,7 +81,7 @@ slapd_daemon(
|
||||
c[i].c_domain = NULL;
|
||||
c[i].c_ops = NULL;
|
||||
c[i].c_sb.sb_sd = -1;
|
||||
c[i].c_sb.sb_options = LBER_NO_READ_AHEAD;
|
||||
c[i].c_sb.sb_options = LBER_NO_READ_AHEAD | LBER_MAX_INCOMING_SIZE;
|
||||
c[i].c_sb.sb_naddr = 0;
|
||||
c[i].c_sb.sb_ber.ber_buf = NULL;
|
||||
c[i].c_sb.sb_ber.ber_ptr = NULL;
|
||||
|
@ -234,11 +234,12 @@ main( int argc, char **argv )
|
||||
c.c_cdn = NULL;
|
||||
c.c_ops = NULL;
|
||||
c.c_sb.sb_sd = 0;
|
||||
c.c_sb.sb_options = 0;
|
||||
c.c_sb.sb_options = LBER_MAX_INCOMING_SIZE;
|
||||
c.c_sb.sb_naddr = udp ? 1 : 0;
|
||||
c.c_sb.sb_ber.ber_buf = NULL;
|
||||
c.c_sb.sb_ber.ber_ptr = NULL;
|
||||
c.c_sb.sb_ber.ber_end = NULL;
|
||||
c.c_sb.sb_max_incoming = 1 << 16;
|
||||
ldap_pvt_thread_mutex_init( &c.c_dnmutex );
|
||||
ldap_pvt_thread_mutex_init( &c.c_opsmutex );
|
||||
ldap_pvt_thread_mutex_init( &c.c_pdumutex );
|
||||
|
Loading…
Reference in New Issue
Block a user