|
|
2fc102 |
From 6b44bc4465b954183f8a52fbb05da6b63b17f0d1 Mon Sep 17 00:00:00 2001
|
|
|
2fc102 |
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
|
|
|
2fc102 |
Date: Mon, 4 Nov 2013 11:59:28 +0100
|
|
|
2fc102 |
Subject: [PATCH 21/31] free idmapped smb SIDs correctly
|
|
|
2fc102 |
|
|
|
2fc102 |
Resolves:
|
|
|
2fc102 |
https://fedorahosted.org/sssd/ticket/2133
|
|
|
2fc102 |
---
|
|
|
2fc102 |
src/tests/sss_idmap-tests.c | 6 +++---
|
|
|
2fc102 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
2fc102 |
|
|
|
2fc102 |
diff --git a/src/tests/sss_idmap-tests.c b/src/tests/sss_idmap-tests.c
|
|
|
2fc102 |
index c43e326b1f49ac74c387c76e58f2f32efdce40ff..888be82248045058093d6943ef73742d8812eac3 100644
|
|
|
2fc102 |
--- a/src/tests/sss_idmap-tests.c
|
|
|
2fc102 |
+++ b/src/tests/sss_idmap-tests.c
|
|
|
2fc102 |
@@ -476,7 +476,7 @@ START_TEST(idmap_test_smb_sid2dom_sid)
|
|
|
2fc102 |
"Samba dom_sid-s do not match.");
|
|
|
2fc102 |
|
|
|
2fc102 |
sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
|
|
|
2fc102 |
- talloc_free(new_smb_sid);
|
|
|
2fc102 |
+ sss_idmap_free_smb_sid(idmap_ctx, new_smb_sid);
|
|
|
2fc102 |
}
|
|
|
2fc102 |
END_TEST
|
|
|
2fc102 |
|
|
|
2fc102 |
@@ -512,7 +512,7 @@ START_TEST(idmap_test_bin_sid2smb_sid)
|
|
|
2fc102 |
fail_unless(memcmp(&test_smb_sid, smb_sid, sizeof(struct dom_sid)) == 0,
|
|
|
2fc102 |
"Samba dom_sid structs do not match.");
|
|
|
2fc102 |
|
|
|
2fc102 |
- talloc_free(smb_sid);
|
|
|
2fc102 |
+ sss_idmap_free_smb_sid(idmap_ctx, smb_sid);
|
|
|
2fc102 |
}
|
|
|
2fc102 |
END_TEST
|
|
|
2fc102 |
|
|
|
2fc102 |
@@ -543,7 +543,7 @@ START_TEST(idmap_test_sid2smb_sid)
|
|
|
2fc102 |
fail_unless(memcmp(&test_smb_sid, smb_sid, sizeof(struct dom_sid)) == 0,
|
|
|
2fc102 |
"Samba dom_sid structs do not match.");
|
|
|
2fc102 |
|
|
|
2fc102 |
- talloc_free(smb_sid);
|
|
|
2fc102 |
+ sss_idmap_free_smb_sid(idmap_ctx, smb_sid);
|
|
|
2fc102 |
}
|
|
|
2fc102 |
END_TEST
|
|
|
2fc102 |
|
|
|
2fc102 |
--
|
|
|
2fc102 |
1.8.4.2
|
|
|
2fc102 |
|