summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@samba.org>2022-05-26 09:36:54 +0200
committerJeremy Allison <jra@samba.org>2022-06-27 15:50:29 +0000
commit392cd137783ef2d51564b278187c0d85365e6520 (patch)
tree43c92fc6df096ce403ace041d3a7141fa8c87aee /source3/libnet
parent1b4d33d87270a0bb45d1e39212ad731d98bef049 (diff)
downloadsamba-392cd137783ef2d51564b278187c0d85365e6520.tar.gz
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>
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index a833dd607f5..e3c463e9c4c 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -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;