summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-06-26 16:21:16 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-01-30 13:37:53 +0100
commit2dd4676825aa42a7fc38907dd0f879c17d508960 (patch)
tree7e8107769d12e8612d1aebad1cef000bad7de5a3
parentf160d64b08e574d58d046be297553efe73878bcb (diff)
downloadsssd-2dd4676825aa42a7fc38907dd0f879c17d508960.tar.gz
sssd-2dd4676825aa42a7fc38907dd0f879c17d508960.tar.xz
sssd-2dd4676825aa42a7fc38907dd0f879c17d508960.zip
sudo: return after tevent_req_error
Don't call tevent_req_done after tevent_req_error (for the same request). Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit 979f969abe7a75a2f41f6fddabec94674ca3c722)
-rw-r--r--src/responder/sudo/sudosrv_query.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/sudo/sudosrv_query.c b/src/responder/sudo/sudosrv_query.c
index 632afa712..4d19514cd 100644
--- a/src/responder/sudo/sudosrv_query.c
+++ b/src/responder/sudo/sudosrv_query.c
@@ -364,6 +364,7 @@ static void sudosrv_parse_query_done(struct tevent_req *subreq)
talloc_free(subreq);
if (ret != EOK) {
tevent_req_error(req, ret);
+ return;
}
tevent_req_done(req);