diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_groupmap.c | 3 | ||||
-rw-r--r-- | source3/utils/net_sam.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c index 061ffea029..a00784e133 100644 --- a/source3/utils/net_groupmap.c +++ b/source3/utils/net_groupmap.c @@ -732,7 +732,8 @@ static int net_groupmap_listmem(struct net_context *c, int argc, const char **ar members = NULL; num = 0; - if (!NT_STATUS_IS_OK(pdb_enum_aliasmem(&alias, &members, &num))) { + if (!NT_STATUS_IS_OK(pdb_enum_aliasmem(&alias, talloc_tos(), + &members, &num))) { d_fprintf(stderr, "Could not list members for sid %s\n", argv[0]); return -1; } diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c index 45dfb61cef..5f41f21aaa 100644 --- a/source3/utils/net_sam.c +++ b/source3/utils/net_sam.c @@ -1233,7 +1233,8 @@ static int net_sam_listmem(struct net_context *c, int argc, const char **argv) DOM_SID *members = NULL; size_t i, num_members = 0; - status = pdb_enum_aliasmem(&group, &members, &num_members); + status = pdb_enum_aliasmem(&group, talloc_tos(), &members, + &num_members); if (!NT_STATUS_IS_OK(status)) { d_fprintf(stderr, "Listing group members failed with " |