]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:krb5_wrap: Remove unnecessary cast
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 9 Aug 2023 04:51:05 +0000 (16:51 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 04:57:34 +0000 (04:57 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5_wrap/krb5_samba.c

index 9488fcde7e286e76f6989dff2350216c6bf07d2d..18230603b293ab3776141a77a4861dd8f761474e 100644 (file)
@@ -323,7 +323,7 @@ int smb_krb5_create_key_from_string(krb5_context context,
 
                ok = convert_string_talloc(frame, CH_UNIX, CH_UTF16LE,
                                           password->data, password->length,
-                                          (void **)&utf16, &utf16_size);
+                                          &utf16, &utf16_size);
                if (!ok) {
                        if (errno == 0) {
                                errno = EINVAL;