]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/modify.c
Fixup bdb_entry_release now that entry_decode uses two memory blocks
[openldap] / servers / slapd / modify.c
index 62646360070f38aa97b848be8d01bce22e661c91..783d9ac89f81482bf8a5566a74b6c5517951e55c 100644 (file)
@@ -555,7 +555,7 @@ int slap_mods_opattrs(
                mod->sml_bvalues = (struct berval **) malloc( 2 * sizeof( struct berval * ) );
                mod->sml_bvalues[0] = ber_bvdup( &name );
                mod->sml_bvalues[1] = NULL;
-
+               assert( mod->sml_bvalues[0] );
                *modtail = mod;
                modtail = &mod->sml_next;
 
@@ -565,6 +565,7 @@ int slap_mods_opattrs(
                mod->sml_bvalues = (struct berval **) malloc( 2 * sizeof( struct berval * ) );
                mod->sml_bvalues[0] = ber_bvdup( &timestamp );
                mod->sml_bvalues[1] = NULL;
+               assert( mod->sml_bvalues[0] );
                *modtail = mod;
                modtail = &mod->sml_next;
        }
@@ -575,6 +576,7 @@ int slap_mods_opattrs(
        mod->sml_bvalues = (struct berval **) malloc( 2 * sizeof( struct berval * ) );
        mod->sml_bvalues[0] = ber_bvdup( &name );
        mod->sml_bvalues[1] = NULL;
+       assert( mod->sml_bvalues[0] );
        *modtail = mod;
        modtail = &mod->sml_next;
 
@@ -584,6 +586,7 @@ int slap_mods_opattrs(
        mod->sml_bvalues = (struct berval **) malloc( 2 * sizeof( struct berval * ) );
        mod->sml_bvalues[0] = ber_bvdup( &timestamp );
        mod->sml_bvalues[1] = NULL;
+       assert( mod->sml_bvalues[0] );
        *modtail = mod;
        modtail = &mod->sml_next;