From: Volker Lendecke Date: Tue, 24 Apr 2018 08:37:26 +0000 (+0200) Subject: torture3: Fix CID 1435119 Error handling issues (CHECKED_RETURN) X-Git-Tag: ldb-1.4.0~537 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fa8e5671584025d9553cac00210aca7ef62695a;p=thirdparty%2Fsamba.git torture3: Fix CID 1435119 Error handling issues (CHECKED_RETURN) Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/torture/bench_pthreadpool.c b/source3/torture/bench_pthreadpool.c index 4269b5360f8..3d581e9e5b6 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); }