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)
commit4449ce381aca25e7f510a2f24b43c3a81e870032
treeef13cea80cde6dfc667fcbf0e308105b9afd6709
parenta3e1b835656470f1a80f0fa69f53a9df849baee3
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.
source/winbind/wb_sids2xids.c
source/winbind/wb_xids2sids.c