mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:libnet: Allocate the machine name string under its container's talloc context
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
6e3135ff22
commit
1b4d33d872
@ -2545,7 +2545,7 @@ WERROR libnet_init_UnjoinCtx(TALLOC_CTX *mem_ctx,
|
||||
|
||||
talloc_set_destructor(ctx, libnet_destroy_UnjoinCtx);
|
||||
|
||||
ctx->in.machine_name = talloc_strdup(mem_ctx, lp_netbios_name());
|
||||
ctx->in.machine_name = talloc_strdup(ctx, lp_netbios_name());
|
||||
W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name);
|
||||
|
||||
*r = ctx;
|
||||
|
Loading…
Reference in New Issue
Block a user