git.samba.org
/
abartlet
/
samba.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add tevent_req_simple_recv_ntstatus()
[abartlet/samba.git/.git]
/
lib
/
util
/
tevent_ntstatus.c
diff --git
a/lib/util/tevent_ntstatus.c
b/lib/util/tevent_ntstatus.c
index 1a34e9c749d4448b0af56cabe79f468ad81c002e..4e4339989a1de7242a0ac958f8ef683c59710a0b 100644
(file)
--- 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;
+}