]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libnet: Remove unnecessary cast
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 9 Aug 2023 04:53:21 +0000 (16:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Aug 2023 23:37:29 +0000 (23:37 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libnet/libnet_join.c

index b60eb112d0a19bb61c691d22d230e8e9832a615f..5b401f718b815730a4ce577da3f0685c3a6c5fa2 100644 (file)
@@ -1357,7 +1357,7 @@ static NTSTATUS libnet_join_joindomain_rpc_unsecure(TALLOC_CTX *mem_ctx,
        len = strlen(r->in.machine_password);
        ok = convert_string_talloc(frame, CH_UNIX, CH_UTF16,
                                   r->in.machine_password, len,
-                                  (void **)&new_trust_blob.data,
+                                  &new_trust_blob.data,
                                   &new_trust_blob.length);
        if (!ok) {
                status = NT_STATUS_UNMAPPABLE_CHARACTER;