Fix an uninitialized variable access in callers of parse_msdfs_symlink
commite9f57680b16e18f56e396746c82a7245cbcf5701
authorVolker Lendecke <vl@samba.org>
Sun, 22 Jun 2008 10:50:30 +0000 (22 12:50 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jun 2008 07:21:19 +0000 (23 09:21 +0200)
tree58f7295e25bc5c137fa45584ae7cc4c7a2a07ee9
parent8804baefaa2f422a3e4235579eb580fe7d0ed9cc
Fix an uninitialized variable access in callers of parse_msdfs_symlink

At least form_junctions() does not initialize refcount, and I don't see it in
get_referred_path(). For the latters, the callers might initialize it. But even
if they did, I think parse_msdfs_symlink() should unconditionally return the
number of referrals it found. I don't think it makes sense to count them up
from somewhere else.
(cherry picked from commit d75905ad66e96d4967eb8780d3a980eccb796898)
source/smbd/msdfs.c