git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f3843e3
)
Fix a valgrind error in idmap_ad_sids_to_unixids()
author
Volker Lendecke
<vl@samba.org>
Mon, 20 Oct 2008 16:25:13 +0000
(18:25 +0200)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_ad.c
b/source3/winbindd/idmap_ad.c
index 8144d876d4061a4083ad96693e33877f0176c730..60a2d8642aacd2d3c563f204ea9252d6589bc097 100644
(file)
--- 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);