]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmbclient: Avoid a call to SMBC_errno() in SMBC_splice_ctx()
authorVolker Lendecke <vl@samba.org>
Tue, 15 Dec 2020 16:15:21 +0000 (17:15 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 6 Aug 2021 17:22:30 +0000 (17:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/libsmb_file.c

index d4593b2fe9dfddaf69873d061c5f0975a7c61b59..0332b92661067e58aa17b9d1449de646d81d3342 100644 (file)
@@ -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;
        }