mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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
1b4d33d872
commit
392cd13778
@ -2510,7 +2510,7 @@ WERROR libnet_init_JoinCtx(TALLOC_CTX *mem_ctx,
|
||||
|
||||
talloc_set_destructor(ctx, libnet_destroy_JoinCtx);
|
||||
|
||||
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);
|
||||
|
||||
ctx->in.secure_channel_type = SEC_CHAN_WKSTA;
|
||||
|
Loading…
Reference in New Issue
Block a user