1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

libsmbclient: Avoid a call to SMBC_errno() in SMBC_read_ctx()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-12-15 17:15:21 +01:00 committed by Jeremy Allison
parent 5e98b7dfc0
commit 19df9a2edf

View File

@ -281,8 +281,8 @@ SMBC_read_ctx(SMBCCTX *context,
status = cli_read(file->targetcli, file->cli_fd, (char *)buf, offset,
count, &ret);
if (!NT_STATUS_IS_OK(status)) {
errno = SMBC_errno(context, file->targetcli);
TALLOC_FREE(frame);
errno = cli_status_to_errno(status);
return -1;
}