mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
lib: Allow NULL converted_size in convert_string_talloc
This commit is contained in:
parent
d7cc8571f7
commit
a52f179951
@ -376,7 +376,9 @@ bool convert_string_talloc_handle(TALLOC_CTX *ctx, struct smb_iconv_handle *ic,
|
||||
errno = ENOMEM;
|
||||
return false;
|
||||
}
|
||||
if (converted_size != NULL) {
|
||||
*converted_size = destlen;
|
||||
}
|
||||
*dest = ob;
|
||||
return true;
|
||||
}
|
||||
@ -470,7 +472,9 @@ bool convert_string_talloc_handle(TALLOC_CTX *ctx, struct smb_iconv_handle *ic,
|
||||
}
|
||||
}
|
||||
|
||||
if (converted_size != NULL) {
|
||||
*converted_size = destlen;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user