]> git.ipfire.org Git - thirdparty/samba.git/commit
nsswitch wbinfo: fix uninitialised return value on error
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 21 May 2025 22:32:50 +0000 (10:32 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 28 May 2025 23:04:38 +0000 (23:04 +0000)
commit02713eaeda18f416cf034f11ace268f9ff4f595c
tree48695094cc25685ee7d0ba0c4e0cda3c3a062be2
parenteb76e600c4346a92528c701c76a5300cbbd0bf74
nsswitch wbinfo: fix uninitialised return value on error

In wbinfo_lookup_sids ret was not initialised and was not set in
the error return paths. Returning an uninitialised value in the
event of an error, and in all probability something that evaluated to
true, so would not have signalled the error to the caller.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Anoop C S <anoopcs@samba.org>
nsswitch/wbinfo.c