From 8cd92242b9f247630e17d396014f6f671f577f4c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 4 Jun 2005 11:10:57 +0000 Subject: r7269: talloc_steal() is preferred where possible, as it can't fail and does not have some of the issues of talloc_reference(). Andrew Bartlett (This used to be commit 2fb413355a7cd7b5cee02237d2fbff91381435e5) --- source4/auth/auth_sam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/auth/auth_sam.c b/source4/auth/auth_sam.c index 24007d1eb7..a4dd8984dd 100644 --- a/source4/auth/auth_sam.c +++ b/source4/auth/auth_sam.c @@ -431,9 +431,9 @@ static NTSTATUS authsam_make_server_info(TALLOC_CTX *mem_ctx, void *sam_ctx, server_info->n_domain_groups = group_ret; server_info->domain_groups = groupSIDs; - server_info->account_name = talloc_reference(server_info, samdb_result_string(msgs[0], "sAMAccountName", NULL)); + server_info->account_name = talloc_steal(server_info, samdb_result_string(msgs[0], "sAMAccountName", NULL)); - server_info->domain_name = talloc_reference(server_info, samdb_result_string(msgs_domain[0], "nETBIOSName", NULL)); + server_info->domain_name = talloc_steal(server_info, samdb_result_string(msgs_domain[0], "nETBIOSName", NULL)); str = samdb_result_string(msgs[0], "displayName", ""); server_info->full_name = talloc_strdup(server_info, str); -- cgit