summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-04 11:06:02 +0100
committerKarolin Seeger <kseeger@samba.org>2008-03-04 13:56:35 +0100
commit59e745ea67c8dfe1168ca08eec59cb29c333c403 (patch)
tree7bb6f5d60a96fc96e35f0f53ab67e6864999e812
parent0a27ef8be7df518770ae8b5a44f72efc86f280bf (diff)
downloadsamba-59e745ea67c8dfe1168ca08eec59cb29c333c403.tar.gz
samba-59e745ea67c8dfe1168ca08eec59cb29c333c403.tar.bz2
samba-59e745ea67c8dfe1168ca08eec59cb29c333c403.zip
Zero more structs initially in LSA rpc server.
Guenther (cherry picked from commit d7ce643285276790a65faff76666498595a508d7) (This used to be commit 7867f40567503db32dbb13b4fca19792cf198505)
-rw-r--r--source3/rpc_server/srv_lsa_nt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index ce3fd1a44f..c2502141e5 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -82,6 +82,8 @@ static int init_lsa_ref_domain_list(TALLOC_CTX *mem_ctx,
return -1;
}
+ ZERO_STRUCT(ref->domains[num]);
+
init_lsa_StringLarge(&ref->domains[num].name, dom_name);
ref->domains[num].sid = sid_dup_talloc(mem_ctx, dom_sid);
if (!ref->domains[num].sid) {
@@ -228,6 +230,8 @@ static NTSTATUS lookup_lsa_sids(TALLOC_CTX *mem_ctx,
const char *domain;
enum lsa_SidType type = SID_NAME_UNKNOWN;
+ ZERO_STRUCT(sid);
+
/* Split name into domain and user component */
full_name = name[i].string;