summaryrefslogtreecommitdiff
path: root/source4/dsdb/kcc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-22 19:18:25 -0700
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-09-23 08:41:05 -0700
commit519180c341edd1be51fbbb622132c2f5d9a37731 (patch)
tree2ce538e53e2cb4dcfe3ec35e0869b48b19d3fd84 /source4/dsdb/kcc
parent224fbbe33fbb4acea1c0907b1b7566d749521a92 (diff)
downloadsamba-519180c341edd1be51fbbb622132c2f5d9a37731.tar.gz
samba-519180c341edd1be51fbbb622132c2f5d9a37731.tar.bz2
samba-519180c341edd1be51fbbb622132c2f5d9a37731.zip
s4:dsdb/kcc: we don't need to manually allocate [out,ref] pointers anymore
metze Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
Diffstat (limited to 'source4/dsdb/kcc')
-rw-r--r--source4/dsdb/kcc/kcc_drs_replica_info.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/dsdb/kcc/kcc_drs_replica_info.c b/source4/dsdb/kcc/kcc_drs_replica_info.c
index 170105642b..05c1eb24d8 100644
--- a/source4/dsdb/kcc/kcc_drs_replica_info.c
+++ b/source4/dsdb/kcc/kcc_drs_replica_info.c
@@ -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