From: Volker Lendecke Date: Mon, 20 Oct 2008 16:25:13 +0000 (+0200) Subject: Fix a valgrind error in idmap_ad_sids_to_unixids() X-Git-Tag: samba-4.0.0alpha6~778^2~5^2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc9bbda8b390a221d7b88fd6eb1b54efc8c91c6b;p=thirdparty%2Fsamba.git Fix a valgrind error in idmap_ad_sids_to_unixids() We need to initialize all mappings in case we don't find anything. Simo, please check! Volker --- diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c index 8144d876d40..60a2d8642aa 100644 --- a/source3/winbindd/idmap_ad.c +++ b/source3/winbindd/idmap_ad.c @@ -517,6 +517,8 @@ again: bidx = idx; for (i = 0; (i < IDMAP_AD_MAX_IDS) && ids[idx]; i++, idx++) { + ids[idx]->status = ID_UNKNOWN; + sidstr = sid_binstring(ids[idx]->sid); filter = talloc_asprintf_append_buffer(filter, "(objectSid=%s)", sidstr);