summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-18 16:54:13 +0200
committerVolker Lendecke <vl@samba.org>2009-04-19 09:27:15 +0200
commit386511b8e12672ec68f09838ddf6e36b7fddae04 (patch)
treeadb596bfeec75554ffc881570cf2f7eaf1f2aadb
parent35e6a0e618db99287d12092cd8048276ffdb2356 (diff)
downloadsamba-386511b8e12672ec68f09838ddf6e36b7fddae04.tar.gz
samba-386511b8e12672ec68f09838ddf6e36b7fddae04.tar.bz2
samba-386511b8e12672ec68f09838ddf6e36b7fddae04.zip
Make get_samr_info_by_sid use recent coding conventions
-rw-r--r--source3/rpc_server/srv_samr_nt.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index b18011c1f9..7246997462 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -382,20 +382,16 @@ static struct samr_info *get_samr_info_by_sid(TALLOC_CTX *mem_ctx,
DOM_SID *psid)
{
struct samr_info *info;
- fstring sid_str;
- if (psid) {
- sid_to_fstring(sid_str, psid);
- } else {
- fstrcpy(sid_str,"(NULL)");
- }
-
- if ((info = TALLOC_ZERO_P(mem_ctx, struct samr_info)) == NULL) {
+ info = talloc_zero(mem_ctx, struct samr_info);
+ if (info == NULL) {
return NULL;
}
talloc_set_destructor(info, samr_info_destructor);
- DEBUG(10,("get_samr_info_by_sid: created new info for sid %s\n", sid_str));
+ DEBUG(10, ("get_samr_info_by_sid: created new info for sid %s\n",
+ sid_string_dbg(psid)));
+
if (psid) {
sid_copy( &info->sid, psid);
info->builtin_domain = sid_check_is_builtin(psid);