From dee721af72ec68f45c7a230ea0c1a0a3ebe1c7f6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 14 Aug 2019 08:41:03 +0200 Subject: [PATCH] torture: Fix CID 1452288 Null pointer dereferences (NULL_RETURNS) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Wed Aug 14 08:59:23 UTC 2019 on sn-devel-184 --- source4/torture/local/mdspkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/local/mdspkt.c b/source4/torture/local/mdspkt.c index a73c176e746..dd9c391e9e7 100644 --- a/source4/torture/local/mdspkt.c +++ b/source4/torture/local/mdspkt.c @@ -72,7 +72,7 @@ static bool test_mdspkt_empty_cnid_fm(struct torture_context *tctx) torture_assert_goto(tctx, ret, ret, done, "sl_unpack failed\n"); cnids = dalloc_get(d, "DALLOC_CTX", 0, "sl_cnids_t", 1); - torture_assert_not_null_goto(tctx, d, ret, done, + torture_assert_not_null_goto(tctx, cnids, ret, done, "dalloc_get cnids failed\n"); ncnids = dalloc_size(cnids->ca_cnids); -- 2.47.2