From: Sang Seok Lim Date: Tue, 21 Dec 2004 04:46:44 +0000 (+0000) Subject: Buf size adjustment X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79d9ef9c87e3444809a0fd106a4c282f1e24b25b;p=openldap Buf size adjustment --- diff --git a/servers/slapd/component.c b/servers/slapd/component.c index e35fff1a67..bbed15f530 100644 --- a/servers/slapd/component.c +++ b/servers/slapd/component.c @@ -1207,7 +1207,7 @@ test_comp_filter_item( if ( !a->a_comp_data && attr_converter && nibble_mem_allocator ) { a->a_comp_data = malloc( sizeof( ComponentData ) ); /* Memory chunk pre-allocation for decoders */ - a->a_comp_data->cd_mem_op = nibble_mem_allocator ( 1024, 128 ); + a->a_comp_data->cd_mem_op = nibble_mem_allocator ( 1024*4, 1024 ); a->a_comp_data->cd_tree = attr_converter (a, syn, bv); } @@ -1220,7 +1220,7 @@ test_comp_filter_item( /* Memory for storing will-be-extracted attribute values */ attr_nm = nibble_mem_allocator ( 1024*4 , 1024 ); - if ( !attr_nm )return LDAP_PROTOCOL_ERROR; + if ( !attr_nm ) return LDAP_PROTOCOL_ERROR; /* Memory for storing component assertion values */ if( !ca->ca_comp_data.cd_mem_op ) {