Fixed a crash bug in unixuid module on failed ID mapping
authorAndrew Tridgell <tridge@samba.org>
Fri, 11 Apr 2008 04:12:34 +0000 (14:12 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 11 Apr 2008 04:12:34 +0000 (14:12 +1000)
commit3d01c8eb6d4a9da9dc3dde9edb4057b534655e1d
tree3508275f576a4fe8e5eaa788c57b7b123ba7066b
parent8ed6f6d5a825c8b0e8d66d30877a91a96fe6e7a4
Fixed a crash bug in unixuid module on failed ID mapping

We need to intialise *ids regardless of the status of the call, as the
IDL specifies that the out[] array always exists. If we don't
initialise out then we get a segv when a id mapping fails.

This still doesn't explain why the idmapping is failing, but at least
the client now gets NT_STATUS_NONE_MAPPED rather than a crashed
server.
(This used to be commit 4449ce381aca25e7f510a2f24b43c3a81e870032)
source4/winbind/wb_sids2xids.c
source4/winbind/wb_xids2sids.c