1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

r19945: Fix a segfault -- lookup_rids needs to init the names even on failure

(This used to be commit eba404e668c270f2d31e3a8ab0721064eda39b40)
This commit is contained in:
Volker Lendecke 2006-11-29 08:11:33 +00:00 committed by Gerald (Jerry) Carter
parent dd813b6b29
commit d746c3b781

View File

@ -406,7 +406,9 @@ static BOOL wb_lookup_rids(TALLOC_CTX *mem_ctx,
if (!winbind_lookup_rids(tmp_ctx, domain_sid, num_rids, rids,
domain_name, &my_names, &my_types)) {
*domain_name = "";
for (i=0; i<num_rids; i++) {
names[i] = "";
types[i] = SID_NAME_UNKNOWN;
}
return True;