From 979f969abe7a75a2f41f6fddabec94674ca3c722 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Thu, 26 Jun 2014 16:21:16 +0100 Subject: sudo: return after tevent_req_error Don't call tevent_req_done after tevent_req_error (for the same request). Reviewed-by: Sumit Bose --- src/responder/sudo/sudosrv_query.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/responder/sudo/sudosrv_query.c b/src/responder/sudo/sudosrv_query.c index 632afa71..4d19514c 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); -- cgit