From e470d331948cf4b45b9046c3a91d4370b83823a1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 4 Nov 2024 19:13:55 +0100 Subject: [PATCH] s3:libads: fix compiler warning in trust_pw_change() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ../../source3/libads/trusts_util.c: In function ‘trust_pw_change’: ../../source3/libads/trusts_util.c:302:45: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing] 302 | (void **)&new_trust_pw_blob.data, Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- source3/libads/trusts_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libads/trusts_util.c b/source3/libads/trusts_util.c index 6f805f2365e..b00ab885957 100644 --- a/source3/libads/trusts_util.c +++ b/source3/libads/trusts_util.c @@ -299,7 +299,7 @@ NTSTATUS trust_pw_change(struct netlogon_creds_cli_context *context, len = strlen(new_trust_pw_str); ok = convert_string_talloc(frame, CH_UNIX, CH_UTF16, new_trust_pw_str, len, - (void **)&new_trust_pw_blob.data, + &new_trust_pw_blob.data, &new_trust_pw_blob.length); if (!ok) { status = NT_STATUS_UNMAPPABLE_CHARACTER; -- 2.47.3