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:
parent
5e98b7dfc0
commit
19df9a2edf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user