From 979f969abe7a75a2f41f6fddabec94674ca3c722 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Jun 27 2014 08:23:37 +0000 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 --- diff --git a/src/responder/sudo/sudosrv_query.c b/src/responder/sudo/sudosrv_query.c index 632afa7..4d19514 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);