summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-15 21:49:15 +0100
committerVolker Lendecke <vl@samba.org>2007-12-15 22:09:36 +0100
commit54ae9dfcbce727ae3107f21eee68762502acda60 (patch)
tree32a9f58abc4e3050e0a66717b6cab1223b2eabf9 /source3/libads
parent900288a2b86abd247f9eb4cd15dc5617a17cfef1 (diff)
downloadsamba-54ae9dfcbce727ae3107f21eee68762502acda60.tar.gz
samba-54ae9dfcbce727ae3107f21eee68762502acda60.tar.bz2
samba-54ae9dfcbce727ae3107f21eee68762502acda60.zip
Use sid_string_talloc where we have a tmp talloc ctx
(This used to be commit 0a911d38b8f4be382a9df60f9c6de0c500464b3a)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/disp_sec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libads/disp_sec.c b/source3/libads/disp_sec.c
index e211ef69e4..f4c68638df 100644
--- a/source3/libads/disp_sec.c
+++ b/source3/libads/disp_sec.c
@@ -163,7 +163,7 @@ static void ads_disp_ace(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, SEC_ACE *sec_ace)
}
printf("access SID: %s\naccess type: %s\n",
- sid_string_static(&sec_ace->trustee), access_type);
+ sid_string_talloc(mem_ctx, &sec_ace->trustee), access_type);
if (sec_ace_object(sec_ace->type)) {
ads_disp_sec_ace_object(ads, mem_ctx, &sec_ace->object.object);
@@ -213,9 +213,9 @@ void ads_disp_sd(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, SEC_DESC *sd)
sd->type);
printf("owner SID: %s\n", sd->owner_sid ?
- sid_string_static(sd->owner_sid) : "(null)");
+ sid_string_talloc(mem_ctx, sd->owner_sid) : "(null)");
printf("group SID: %s\n", sd->group_sid ?
- sid_string_static(sd->group_sid) : "(null)");
+ sid_string_talloc(mem_ctx, sd->group_sid) : "(null)");
ads_disp_acl(sd->sacl, "system");
if (sd->sacl) {