dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0043-NSS-TESTS-Fix-subdomains-attribution.patch

bb7cd1
From 5e3ea50bba1fee75cc0788bcd77ae4991828608e Mon Sep 17 00:00:00 2001
bb7cd1
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
bb7cd1
Date: Wed, 1 Mar 2017 13:21:19 +0000
bb7cd1
Subject: [PATCH 43/54] NSS/TESTS: Fix subdomains attribution
bb7cd1
MIME-Version: 1.0
bb7cd1
Content-Type: text/plain; charset=UTF-8
bb7cd1
Content-Transfer-Encoding: 8bit
bb7cd1
bb7cd1
Related:
bb7cd1
https://pagure.io/SSSD/sssd/issue/3001
bb7cd1
bb7cd1
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
bb7cd1
bb7cd1
Reviewed-by: Sumit Bose <sbose@redhat.com>
bb7cd1
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
bb7cd1
---
bb7cd1
 src/tests/cmocka/test_nss_srv.c | 2 +-
bb7cd1
 1 file changed, 1 insertion(+), 1 deletion(-)
bb7cd1
bb7cd1
diff --git a/src/tests/cmocka/test_nss_srv.c b/src/tests/cmocka/test_nss_srv.c
bb7cd1
index 3d7e0382197401cb2264671712152fe0709296b6..cbe0dccdc1d883eae1a9621f12997ef43d05178e 100644
bb7cd1
--- a/src/tests/cmocka/test_nss_srv.c
bb7cd1
+++ b/src/tests/cmocka/test_nss_srv.c
bb7cd1
@@ -3219,7 +3219,7 @@ static int nss_subdom_test_setup(void **state)
bb7cd1
                                   nss_test_ctx->tctx->confdb);
bb7cd1
     assert_int_equal(ret, EOK);
bb7cd1
 
bb7cd1
-    nss_test_ctx->subdom = subdomain;
bb7cd1
+    nss_test_ctx->subdom = nss_test_ctx->tctx->dom->subdomains;
bb7cd1
     return 0;
bb7cd1
 }
bb7cd1
 
bb7cd1
-- 
bb7cd1
2.9.3
bb7cd1