s4:dsdb/kcc: we don't need to manually allocate [out,ref] pointers anymore
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Sep 2010 02:18:25 +0000 (19:18 -0700)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Thu, 23 Sep 2010 15:41:05 +0000 (08:41 -0700)
metze

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
source4/dsdb/kcc/kcc_drs_replica_info.c

index 170105642b24d916ce98c1f19b92fc2dc01eb755..05c1eb24d8aa6324c0b0acbd811cd14e7da47104 100644 (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