summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-06-26 16:21:16 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-06-27 10:23:37 +0200
commit979f969abe7a75a2f41f6fddabec94674ca3c722 (patch)
tree6e700d00916f6dc07bf872578e369c26a6bb938a /src/responder
parent8ca1875209325ddeb28fccb421457b76b4b0c7db (diff)
downloadsssd-979f969abe7a75a2f41f6fddabec94674ca3c722.tar.gz
sssd-979f969abe7a75a2f41f6fddabec94674ca3c722.tar.xz
sssd-979f969abe7a75a2f41f6fddabec94674ca3c722.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>
Diffstat (limited to 'src/responder')
-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);