From: Stefan Metzmacher Date: Mon, 4 Nov 2024 18:13:55 +0000 (+0100) Subject: s3:libads: fix compiler warning in trust_pw_change() X-Git-Tag: tdb-1.4.13~393 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e470d331948cf4b45b9046c3a91d4370b83823a1;p=thirdparty%2Fsamba.git s3:libads: fix compiler warning in trust_pw_change() ../../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 --- 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;