]> git.sur5r.net Git - openldap/commitdiff
fix memory context (hope NULL at init is valid)
authorPierangelo Masarati <ando@openldap.org>
Fri, 11 Apr 2003 22:30:48 +0000 (22:30 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 11 Apr 2003 22:30:48 +0000 (22:30 +0000)
servers/slapd/back-monitor/backend.c
servers/slapd/back-monitor/compare.c
servers/slapd/back-monitor/database.c
servers/slapd/back-monitor/listener.c
servers/slapd/back-monitor/log.c
servers/slapd/back-monitor/rww.c
servers/slapd/back-monitor/thread.c

index 573eaad4f03c2585298e5db0a5ba70c67b057bf1..538070a4f54eddf7865bd0f10d78395e0588ef50 100644 (file)
@@ -109,8 +109,8 @@ monitor_subsys_backend_init(
                bv.bv_val = bi->bi_type;
                bv.bv_len = strlen( bv.bv_val );
 
-               attr_merge_normalize_one( e, monitor_ad_desc, &bv );
-               attr_merge_normalize_one( e_backend, monitor_ad_desc, &bv );
+               attr_merge_normalize_one( e, monitor_ad_desc, &bv, NULL );
+               attr_merge_normalize_one( e_backend, monitor_ad_desc, &bv, NULL );
 
                if ( bi->bi_controls ) {
                        int j;
index 4e04e52b440a034460de8973509c2ff9c6b2ec93..ef57d9ffbcc139d3c42a63c9c0cd53538d59e3e4 100644 (file)
@@ -79,7 +79,8 @@ monitor_back_compare( struct slap_op *op, struct slap_rep *rs)
                if ( value_find_ex( op->oq_compare.rs_ava->aa_desc,
                        SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH |
                                SLAP_MR_ASSERTED_VALUE_NORMALIZED_MATCH,
-                       a->a_nvals, &op->oq_compare.rs_ava->aa_value ) == 0 )
+                       a->a_nvals, &op->oq_compare.rs_ava->aa_value,
+                       op->o_tmpmemctx ) == 0 )
                {
                        rs->sr_err = LDAP_COMPARE_TRUE;
                        break;
index b4ce5de9aecb3d14a50288d37cd4656f7ff3c81d..f21eee7abfe467f48ec8f3d416101ffc60884de1 100644 (file)
@@ -152,7 +152,7 @@ monitor_subsys_database_init(
                                        j, monitor_subsys[SLAPD_MONITOR_BACKEND].mss_dn.bv_val );
                                bv.bv_val = buf;
                                bv.bv_len = strlen( buf );
-                               attr_merge_normalize_one( e, ad_seeAlso, &bv );
+                               attr_merge_normalize_one( e, ad_seeAlso, &bv, NULL );
                                break;
                        }
                }
@@ -239,7 +239,7 @@ monitor_back_add_plugin( Backend *be, Entry *e_database )
 
                bv.bv_val = buf;
                bv.bv_len = strlen( buf );
-               attr_merge_normalize_one( e_database, monitor_ad_desc, &bv );
+               attr_merge_normalize_one( e_database, monitor_ad_desc, &bv, NULL );
 
                i++;
 
index 2224ec1de75d7d2baa7189d6b84d5a03a3c5882d..d25d49d6c188a846bf1a78f8b3b412413e708423 100644 (file)
@@ -127,7 +127,7 @@ monitor_subsys_listener_init(
                        bv.bv_val = "TLS";
                        bv.bv_len = sizeof("TLS")-1;
 
-                       attr_merge_normalize_one( e, monitor_ad_desc, &bv );
+                       attr_merge_normalize_one( e, monitor_ad_desc, &bv, NULL );
                }
 #endif /* HAVE_TLS */
 #ifdef LDAP_CONNECTIONLESS
@@ -137,7 +137,7 @@ monitor_subsys_listener_init(
                        bv.bv_val = "UDP";
                        bv.bv_len = sizeof("UDP")-1;
 
-                       attr_merge_normalize_one( e, monitor_ad_desc, &bv );
+                       attr_merge_normalize_one( e, monitor_ad_desc, &bv, NULL );
                }
 #endif /* HAVE_TLS */
 
index 5ebcba76fb6b62259a6f67bd2a73c3c0292de3de..12860b5cacd4a0619bb4dd0f46582601fd5278fd 100644 (file)
@@ -124,7 +124,7 @@ monitor_subsys_log_init(
                                        monitor_ad_desc->ad_type->sat_syntax,
                                        monitor_ad_desc->ad_type->sat_equality,
                                        &int_2_level[ i ].s,
-                                       &int_2_level[ i ].n );
+                                       &int_2_level[ i ].n, NULL );
                        if ( rc ) {
                                return( -1 );
                        }
@@ -348,11 +348,8 @@ add_values( Entry *e, Modification *mod, int *newlevel )
                        struct berval asserted;
 
                        rc = asserted_value_validate_normalize(
-                               mod->sm_desc, mr,
-                               SLAP_MR_EQUALITY,
-                               &mod->sm_bvalues[i],
-                               &asserted,
-                               &text );
+                               mod->sm_desc, mr, SLAP_MR_EQUALITY,
+                               &mod->sm_bvalues[i], &asserted, &text, NULL );
 
                        if ( rc != LDAP_SUCCESS ) {
                                return rc;
@@ -430,11 +427,8 @@ delete_values( Entry *e, Modification *mod, int *newlevel )
                struct berval asserted;
 
                rc = asserted_value_validate_normalize(
-                               mod->sm_desc, mr,
-                               SLAP_MR_EQUALITY,
-                               &mod->sm_bvalues[i],
-                               &asserted,
-                               &text );
+                               mod->sm_desc, mr, SLAP_MR_EQUALITY,
+                               &mod->sm_bvalues[i], &asserted, &text, NULL );
 
                if( rc != LDAP_SUCCESS ) return rc;
 
index cc1a383d1b6e484c80b92565175a2f0b816af9bf..108546009d39c9d98c14257972257713f3923816 100644 (file)
@@ -120,7 +120,7 @@ monitor_subsys_readw_update_internal(
                bv.bv_val = buf;
                bv.bv_len = strlen( buf );
 
-               attr_merge_normalize_one( e, monitor_ad_desc, &bv );
+               attr_merge_normalize_one( e, monitor_ad_desc, &bv, NULL );
        }
 
        return( 0 );
index 16dd56b129982dca5c03364ff1e89abde927f7b3..1008d61db8217e07f18ec5709b01b3bb44c84395 100644 (file)
@@ -75,7 +75,7 @@ monitor_subsys_thread_init(
        bv.bv_val = buf;
        bv.bv_len = strlen( bv.bv_val );
 
-       attr_merge_normalize_one( e, monitor_ad_desc, &bv );
+       attr_merge_normalize_one( e, monitor_ad_desc, &bv, NULL );
 
        monitor_cache_release( mi, e );
 
@@ -112,7 +112,7 @@ monitor_subsys_thread_update(
 
                bv.bv_val = buf;
                bv.bv_len = strlen( buf );
-               attr_merge_normalize_one( e, monitor_ad_desc, &bv );
+               attr_merge_normalize_one( e, monitor_ad_desc, &bv, NULL );
        }
 
        return( 0 );