Fix a valgrind error in idmap_ad_sids_to_unixids()
authorVolker Lendecke <vl@samba.org>
Mon, 20 Oct 2008 16:25:13 +0000 (18:25 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 20 Oct 2008 19:08:20 +0000 (21:08 +0200)
We need to initialize all mappings in case we don't find anything.

Simo, please check!

Volker

source3/winbindd/idmap_ad.c

index 8144d876d4061a4083ad96693e33877f0176c730..60a2d8642aacd2d3c563f204ea9252d6589bc097 100644 (file)
@@ -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);