From: Volker Lendecke Date: Thu, 4 Jan 2018 19:37:16 +0000 (+0100) Subject: libnet: Use talloc_zero instead of ZERO_STRUCTP X-Git-Tag: tevent-0.9.36~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89c3a1ebbe0f22c03d8958df07da9983fd6fd3b5;p=thirdparty%2Fsamba.git libnet: Use talloc_zero instead of ZERO_STRUCTP Signed-off-by: Volker Lendecke Reviewed-by: David Disseldorp --- diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index 0c206444a53..9a1e58f72e7 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -982,14 +982,14 @@ NTSTATUS libnet_Join_member(struct libnet_context *ctx, return status; } - set_secrets = talloc(tmp_mem, struct provision_store_self_join_settings); + set_secrets = talloc_zero(tmp_mem, + struct provision_store_self_join_settings); if (!set_secrets) { r->out.error_string = NULL; talloc_free(tmp_mem); return NT_STATUS_NO_MEMORY; } - - ZERO_STRUCTP(set_secrets); + set_secrets->domain_name = r2->out.domain_name; set_secrets->realm = r2->out.realm; set_secrets->netbios_name = netbios_name;