summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-05-21 22:29:55 +0200
committerStefan Metzmacher <metze@samba.org>2015-06-12 17:08:18 +0200
commit26c4b3fc9db507557b2539dd7d1f9e593c3fa35a (patch)
tree2f0f68bd8c6c2b3befabd7f6d22c5284c4bf1eba
parent64640cc99c7b8543ee8d35ca243c57c048cdb490 (diff)
downloadsamba-26c4b3fc9db507557b2539dd7d1f9e593c3fa35a.tar.gz
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>
-rw-r--r--libcli/smb/read_smb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcli/smb/read_smb.c b/libcli/smb/read_smb.c
index 26816c3be38..a40f702cffc 100644
--- a/libcli/smb/read_smb.c
+++ b/libcli/smb/read_smb.c
@@ -105,8 +105,10 @@ ssize_t read_smb_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
req, struct read_smb_state);
if (tevent_req_is_unix_error(req, perrno)) {
+ tevent_req_received(req);
return -1;
}
*pbuf = talloc_move(mem_ctx, &state->buf);
+ tevent_req_received(req);
return talloc_get_size(*pbuf);
}