1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

lib:krb5_wrap: Remove unnecessary cast

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-09 16:51:05 +12:00 committed by Andrew Bartlett
parent 578c1d39f5
commit 5b3a8aa544

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