Fix a valgrind error in idmap_ad_sids_to_unixids()
[samba.git] / 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);