From: Timur I. Bakeyev Date: Mon, 13 Aug 2018 22:40:33 +0000 (+1200) Subject: ldb tests: fix assertion on wrong pointer X-Git-Tag: ldb-1.5.1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4f38b067020213671b5d712efc1a99726420b7f;p=thirdparty%2Fsamba.git ldb tests: fix assertion on wrong pointer We are allocating msg02, but check in assertion msg01, which makes no sense here. Signed-off-by: Timur I. Bakeyev Reviewed-by: Douglas Bagnall Reviewed-by: Jeremy Allison --- diff --git a/lib/ldb/tests/ldb_mod_op_test.c b/lib/ldb/tests/ldb_mod_op_test.c index 01667af3865..924c80a14b7 100644 --- a/lib/ldb/tests/ldb_mod_op_test.c +++ b/lib/ldb/tests/ldb_mod_op_test.c @@ -3973,7 +3973,7 @@ static void test_ldb_unique_index_duplicate_with_guid(void **state) assert_int_equal(ret, LDB_SUCCESS); msg02 = ldb_msg_new(tmp_ctx); - assert_non_null(msg01); + assert_non_null(msg02); msg02->dn = ldb_dn_new_fmt(msg02, test_ctx->ldb, "dc=test02"); assert_non_null(msg02->dn);