git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7b4485
)
Zero more structs initially in LSA rpc server.
author
Günther Deschner
<gd@samba.org>
Tue, 4 Mar 2008 10:06:02 +0000
(11:06 +0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 4 Mar 2008 10:06:02 +0000
(11:06 +0100)
Guenther
(This used to be commit
d7ce643285276790a65faff76666498595a508d7
)
source3/rpc_server/srv_lsa_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_lsa_nt.c
b/source3/rpc_server/srv_lsa_nt.c
index ce3fd1a44fae0d63a5641f086281244bcaab3965..c2502141e548a3b24f1da830fc2f9d4298502f2a 100644
(file)
--- 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;