]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nsswitch/libwbclient: Fix CID #1034858, #1034859, #1034860 Resource leak
authorShweta Sodani <ssodani@redhat.com>
Tue, 23 Sep 2025 05:43:26 +0000 (11:13 +0530)
committerAnoop C S <anoopcs@samba.org>
Tue, 23 Sep 2025 12:53:10 +0000 (12:53 +0000)
Signed-off-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Tue Sep 23 12:53:10 UTC 2025 on atb-devel-224

nsswitch/libwbclient/tests/wbclient.c

index a45ee59899f85fc7de3fc7f068a154bfb7ce58fe..7617adc56d49be4b8b55f2334fd04fa0d5b71ceb 100644 (file)
@@ -700,8 +700,9 @@ static bool test_wbc_lookup_rids(struct torture_context *tctx)
        torture_assert_wbc_ok_goto_fail(
                tctx, ret, "%s", "wbcLookupRids for 544 and 545 failed");
 
-       torture_assert_str_equal(
+       torture_assert_str_equal_goto(
                tctx, names[0], "Administrators",
+               ret, fail,
                "S-1-5-32-544 not mapped to 'Administrators'");
        torture_assert_str_equal_goto_fail(
                tctx, names[1], "Users", "S-1-5-32-545 not mapped to 'Users'");