From 4fa8e5671584025d9553cac00210aca7ef62695a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 24 Apr 2018 10:37:26 +0200 Subject: [PATCH] torture3: Fix CID 1435119 Error handling issues (CHECKED_RETURN) Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/torture/bench_pthreadpool.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source3/torture/bench_pthreadpool.c b/source3/torture/bench_pthreadpool.c index 4269b5360f89..3d581e9e5b6a 100644 --- a/source3/torture/bench_pthreadpool.c +++ b/source3/torture/bench_pthreadpool.c @@ -58,7 +58,11 @@ bool run_bench_pthreadpool(int dummy) } } - pthreadpool_pipe_destroy(pool); + if (ret != 1) { + return false; + } + + ret = pthreadpool_pipe_destroy(pool); - return (ret == 1); + return (ret == 0); } -- 2.34.1