1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

s4:dsdb/kcc: we don't need to manually allocate [out,ref] pointers anymore

metze

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
This commit is contained in:
Stefan Metzmacher 2010-09-22 19:18:25 -07:00 committed by Anatoliy Atanasov
parent 224fbbe33f
commit 519180c341

View File

@ -813,12 +813,7 @@ NTSTATUS kccdrs_replica_get_info(struct irpc_message *msg,
value_dn = req2->value_dn_str;
}
/* allocate the reply and fill in some fields */
reply = talloc_zero(mem_ctx, union drsuapi_DsReplicaInfo);
NT_STATUS_HAVE_NO_MEMORY(reply);
req->out.info = reply;
req->out.info_type = talloc(mem_ctx, enum drsuapi_DsReplicaInfoType);
NT_STATUS_HAVE_NO_MEMORY(req->out.info_type);
reply = req->out.info;
*req->out.info_type = info_type;
/* Based on the infoType requested, retrieve the corresponding