summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-06 11:42:15 +0200
committerJeremy Allison <jra@samba.org>2013-08-12 13:59:53 -0700
commita39c9563158cb15835f8a40fb9e79609440b5443 (patch)
treec73457b4741d0a76942ec0afa4c554a1f1dceb11 /lib/util
parent6a081e991923b7d089be4a5cdb1a351c2e863db1 (diff)
downloadsamba-a39c9563158cb15835f8a40fb9e79609440b5443.tar.gz
samba-a39c9563158cb15835f8a40fb9e79609440b5443.tar.bz2
samba-a39c9563158cb15835f8a40fb9e79609440b5443.zip
tevent: Add tevent_received to tevent_req_simple_recv_ntstatus
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/tevent_ntstatus.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/util/tevent_ntstatus.c b/lib/util/tevent_ntstatus.c
index cbbc698bb1..7659f15aff 100644
--- a/lib/util/tevent_ntstatus.c
+++ b/lib/util/tevent_ntstatus.c
@@ -76,12 +76,15 @@ bool tevent_req_is_nterror(struct tevent_req *req, NTSTATUS *status)
NTSTATUS tevent_req_simple_recv_ntstatus(struct tevent_req *req)
{
- NTSTATUS status;
+ NTSTATUS status = NT_STATUS_OK;
- if (tevent_req_is_nterror(req, &status)) {
- return status;
- }
- return NT_STATUS_OK;
+ /*
+ * Ignore result of tevent_req_is_nterror, we're only interested in
+ * the status
+ */
+ tevent_req_is_nterror(req, &status);
+ tevent_req_received(req);
+ return status;
}
void tevent_req_simple_finish_ntstatus(struct tevent_req *subreq,