mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
s4: use ldb_msg_new(), not talloc/talloc_zero
ldb_msg_new() is currently the same as talloc_zero(), but it might not always be. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
8f081b7f78
commit
4624957d42
@ -799,12 +799,10 @@ static NTSTATUS ldapsrv_ModifyRequest(struct ldapsrv_call *call)
|
||||
|
||||
DEBUG(10, ("ModifyRequest: dn: [%s]\n", req->dn));
|
||||
|
||||
msg = talloc(local_ctx, struct ldb_message);
|
||||
msg = ldb_msg_new(local_ctx);
|
||||
NT_STATUS_HAVE_NO_MEMORY(msg);
|
||||
|
||||
msg->dn = dn;
|
||||
msg->num_elements = 0;
|
||||
msg->elements = NULL;
|
||||
|
||||
if (req->num_mods > 0) {
|
||||
msg->num_elements = req->num_mods;
|
||||
|
Reference in New Issue
Block a user