]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/add.c
- setup framework for monitoring of back-bdb/back-hdb stuff in their
[openldap] / servers / slapd / add.c
index 314d044aab249978f40cf5c1998a4e69337ceb27..b69f7a720dedc6c5f4893d21c83132018e30b3bd 100644 (file)
@@ -69,7 +69,7 @@ do_add( Operation *op, SlapReply *rs )
                return SLAPD_DISCONNECT;
        }
 
-       op->ora_e = (Entry *) ch_calloc( 1, sizeof(Entry) );
+       op->ora_e = entry_alloc();
 
        rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn,
                op->o_tmpmemctx );
@@ -506,10 +506,7 @@ slap_mods2entry(
                        }
                }
 
-               attr = ch_calloc( 1, sizeof(Attribute) );
-
-               /* move ad to attr structure */
-               attr->a_desc = mods->sml_desc;
+               attr = attr_alloc( mods->sml_desc );
 
                /* move values to attr structure */
                /*      should check for duplicates */