From f7419172f03089276cab71c41419a5c57508d42e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 26 Sep 2011 11:30:05 -0400 Subject: s3-passdb: Cleanup use of fstring and move to talloc. Signed-off-by: Andreas Schneider --- source3/groupdb/mapping.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source3/groupdb') diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 638c06a8f1..e9a6c3b729 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -549,8 +549,14 @@ NTSTATUS pdb_default_get_aliasinfo(struct pdb_methods *methods, return NT_STATUS_NO_SUCH_ALIAS; } - fstrcpy(info->acct_name, map.nt_name); - fstrcpy(info->acct_desc, map.comment); + info->acct_name = talloc_strdup(info, map.nt_name); + if (!info->acct_name) { + return NT_STATUS_NO_MEMORY; + } + info->acct_desc = talloc_strdup(info, map.comment); + if (!info->acct_desc) { + return NT_STATUS_NO_MEMORY; + } sid_peek_rid(&map.sid, &info->rid); return NT_STATUS_OK; } -- cgit