1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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 <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-11-04 19:13:55 +01:00
parent b6123197d1
commit e470d33194

View File

@ -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;