From: Volker Lendecke Date: Wed, 14 Aug 2019 06:41:03 +0000 (+0200) Subject: torture: Fix CID 1452288 Null pointer dereferences (NULL_RETURNS) X-Git-Tag: tdb-1.4.2~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dee721af72ec68f45c7a230ea0c1a0a3ebe1c7f6;p=thirdparty%2Fsamba.git torture: Fix CID 1452288 Null pointer dereferences (NULL_RETURNS) 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 --- 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);