mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
The existing implementation did not differentiate between the case where the relevant component was not present, and that where talloc_strndup() failed. To correct this situation, put the result into an out parameter on success and return an error on failure. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15482 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>