summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-29 08:11:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:14 -0500
commitd746c3b781aee36b946bd7fc35037d8d404231c7 (patch)
tree4d6127963c16470023ca53a31e0659c5480a49db /source3/passdb
parentdd813b6b29715742cca336421de40897425adeea (diff)
downloadsamba-d746c3b781aee36b946bd7fc35037d8d404231c7.tar.gz
samba-d746c3b781aee36b946bd7fc35037d8d404231c7.tar.bz2
samba-d746c3b781aee36b946bd7fc35037d8d404231c7.zip
r19945: Fix a segfault -- lookup_rids needs to init the names even on failure
(This used to be commit eba404e668c270f2d31e3a8ab0721064eda39b40)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/lookup_sid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 45a72057b6..758fe968fc 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -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;