mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +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;
|
errno = ENOMEM;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (converted_size != NULL) {
|
||||||
*converted_size = destlen;
|
*converted_size = destlen;
|
||||||
|
}
|
||||||
*dest = ob;
|
*dest = ob;
|
||||||
return true;
|
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;
|
*converted_size = destlen;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user