summaryrefslogtreecommitdiffstats
path: root/server/providers/proxy.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-11-07 12:59:17 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-11-09 13:50:30 -0500
commit47d61ca8db78e5976400dbe08f426c0985e6e801 (patch)
treeec74b9a683113660420ee0aca8f10122ea8eb475 /server/providers/proxy.c
parent35d0b225578e179b8c21f1eee59fcf075eb1f692 (diff)
downloadsssd-47d61ca8db78e5976400dbe08f426c0985e6e801.tar.gz
sssd-47d61ca8db78e5976400dbe08f426c0985e6e801.tar.xz
sssd-47d61ca8db78e5976400dbe08f426c0985e6e801.zip
Fix tevent_req error checking.
When possible using a macro that correctly deals with tstate
Diffstat (limited to 'server/providers/proxy.c')
-rw-r--r--server/providers/proxy.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/server/providers/proxy.c b/server/providers/proxy.c
index bce6a75..628f9d4 100644
--- a/server/providers/proxy.c
+++ b/server/providers/proxy.c
@@ -300,13 +300,7 @@ static void proxy_default_done(struct tevent_req *subreq)
static int proxy_default_recv(struct tevent_req *req)
{
- enum tevent_req_state tstate;
- uint64_t err = 0;
-
- if (tevent_req_is_error(req, &tstate, &err)) {
- if (err != 0) return err;
- return EIO;
- }
+ TEVENT_REQ_RETURN_ON_ERROR(req);
return EOK;
}
@@ -1808,13 +1802,7 @@ static void get_groups_by_gid_process(struct tevent_req *subreq)
static int get_groups_by_gid_recv(struct tevent_req *req)
{
- enum tevent_req_state tstate;
- uint64_t err = 0;
-
- if (tevent_req_is_error(req, &tstate, &err)) {
- if (err != 0) return err;
- return EIO;
- }
+ TEVENT_REQ_RETURN_ON_ERROR(req);
return EOK;
}
@@ -1977,13 +1965,7 @@ static void get_group_from_gid_send_del_done(struct tevent_req *subreq)
static int get_group_from_gid_recv(struct tevent_req *req)
{
- enum tevent_req_state tstate;
- uint64_t err = 0;
-
- if (tevent_req_is_error(req, &tstate, &err)) {
- if (err != 0) return err;
- return EIO;
- }
+ TEVENT_REQ_RETURN_ON_ERROR(req);
return EOK;
}