mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
e9a804c9bd
nt_name and comment are allocated via talloc_strdup(). Length is not guaranteed to be sizeof(fstring) and so rather than use fstrcpy into a possibly NULL buffer, free original string, then talloc_strdup() the one provided to us. Signed-off-by: Andrew Walker <awalker@ixsystems.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 27 22:07:45 UTC 2021 on sn-devel-184