mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3:pylibsmb: make use of protocol independent cli_write_send/recv in py_cli_write()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Tim Beale <timbeale@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
9fb0d8e7e2
commit
3c3b44004f
@ -746,12 +746,12 @@ static PyObject *py_cli_write(struct py_cli_state *self, PyObject *args,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
req = cli_write_andx_send(NULL, self->ev, self->cli, fnum, mode,
|
||||
(uint8_t *)buf, offset, buflen);
|
||||
req = cli_write_send(NULL, self->ev, self->cli, fnum, mode,
|
||||
(uint8_t *)buf, offset, buflen);
|
||||
if (!py_tevent_req_wait_exc(self, req)) {
|
||||
return NULL;
|
||||
}
|
||||
status = cli_write_andx_recv(req, &written);
|
||||
status = cli_write_recv(req, &written);
|
||||
TALLOC_FREE(req);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user