Prevent segv in winbindd running on a DC using the "idmap backend" syntax.
commit2545457268610ab8fe71911bab167b4aeebc4ca3
authorGerald (Jerry) Carter <jerry@samba.org>
Tue, 20 Nov 2007 19:24:03 +0000 (20 13:24 -0600)
committerGerald (Jerry) Carter <jerry@samba.org>
Tue, 20 Nov 2007 19:27:14 +0000 (20 13:27 -0600)
tree445506dd461c6669a66b97af044acfbd8161607b
parent4c6b01b0ef289bb1511c30354ed41b597288c9d7
Prevent segv in winbindd running on a DC using the "idmap backend" syntax.

The number of domains should be counted as they are added and not assumed
to match the loop counter.

manually cherry-picked 8ad2826c48a0d4d26abc3bb209860c776f55822f
(This used to be commit 99b75cada2c4caaec5d30c8351080f0a41e44bd1)
source3/winbindd/idmap.c