diff options
author | Samuel Cabrero <scabrero@samba.org> | 2022-05-26 09:36:54 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-06-27 15:50:29 +0000 |
commit | 392cd137783ef2d51564b278187c0d85365e6520 (patch) | |
tree | 43c92fc6df096ce403ace041d3a7141fa8c87aee /source3/libnet | |
parent | 1b4d33d87270a0bb45d1e39212ad731d98bef049 (diff) | |
download | samba-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.c | 2 |
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; |