From: Volker Lendecke Date: Tue, 15 Dec 2020 16:15:21 +0000 (+0100) Subject: libsmbclient: Avoid a call to SMBC_errno() in SMBC_splice_ctx() X-Git-Tag: ldb-2.5.0~1002 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bd69f1e1a5c04b76e79cb0b92db773356554e75;p=thirdparty%2Fsamba.git libsmbclient: Avoid a call to SMBC_errno() in SMBC_splice_ctx() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index d4593b2fe9d..0332b926610 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -329,8 +329,8 @@ SMBC_splice_ctx(SMBCCTX *context, count, srcfile->offset, dstfile->offset, &written, splice_cb, priv); if (!NT_STATUS_IS_OK(status)) { - errno = SMBC_errno(context, srcfile->targetcli); TALLOC_FREE(frame); + errno = cli_status_to_errno(status); return -1; }