Fix a valgrind bug in the new [ug]id2sid cache
commit36b52b497a5b39e89c6f566c12a497bd26fed7f3
authorVolker Lendecke <vl@samba.org>
Sat, 3 May 2008 00:41:10 +0000 (3 02:41 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 May 2008 10:35:11 +0000 (6 12:35 +0200)
treed2291be35bf61f1d1957fe565ec4e41a28ca230f
parent49be6c8dac6ddb90cd3ea2324d2dbc5d7cc503dd
Fix a valgrind bug in the new [ug]id2sid cache

When we're given a SID, it is not always padded with zeros. Only look at the
initialized parts in the SID.
(cherry picked from commit 90c37a7c2cdac3de0b75f889d63f5fe1b87a48e3)
source/passdb/lookup_sid.c