enable max_incoming checks

This commit is contained in:
Kurt Zeilenga 2001-05-07 02:03:35 +00:00
parent 34773a351d
commit 3691e61aab
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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 );