mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli/smb: use tevent_req_received(req) in read_smb_recv()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
64640cc99c
commit
26c4b3fc9d
@ -105,8 +105,10 @@ ssize_t read_smb_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
|||||||
req, struct read_smb_state);
|
req, struct read_smb_state);
|
||||||
|
|
||||||
if (tevent_req_is_unix_error(req, perrno)) {
|
if (tevent_req_is_unix_error(req, perrno)) {
|
||||||
|
tevent_req_received(req);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
*pbuf = talloc_move(mem_ctx, &state->buf);
|
*pbuf = talloc_move(mem_ctx, &state->buf);
|
||||||
|
tevent_req_received(req);
|
||||||
return talloc_get_size(*pbuf);
|
return talloc_get_size(*pbuf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user