summaryrefslogtreecommitdiff
path: root/lib/util/tevent_ntstatus.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-03-01 22:25:51 +0100
committerVolker Lendecke <vl@samba.org>2009-03-24 13:23:40 +0100
commit6a2e71b12dbfed195859f0fc521ec5a5c145e1f5 (patch)
tree2316ac5143bb44e82950e78ebe80410d164a3ef1 /lib/util/tevent_ntstatus.c
parentf91565544f96be60cb6464d739008f8241e55d5c (diff)
downloadsamba-6a2e71b12dbfed195859f0fc521ec5a5c145e1f5.tar.gz
samba-6a2e71b12dbfed195859f0fc521ec5a5c145e1f5.tar.bz2
samba-6a2e71b12dbfed195859f0fc521ec5a5c145e1f5.zip
Add tevent_req_simple_recv_ntstatus()
Diffstat (limited to 'lib/util/tevent_ntstatus.c')
-rw-r--r--lib/util/tevent_ntstatus.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/util/tevent_ntstatus.c b/lib/util/tevent_ntstatus.c
index 1a34e9c749..4e4339989a 100644
--- a/lib/util/tevent_ntstatus.c
+++ b/lib/util/tevent_ntstatus.c
@@ -49,3 +49,13 @@ bool tevent_req_is_nterror(struct tevent_req *req, NTSTATUS *status)
}
return true;
}
+
+NTSTATUS tevent_req_simple_recv_ntstatus(struct tevent_req *req)
+{
+ NTSTATUS status;
+
+ if (tevent_req_is_nterror(req, &status)) {
+ return status;
+ }
+ return NT_STATUS_OK;
+}