fixed a logic bug in the tevent nesting code
commit6e968a6f12de83be431e6244c34bb3cecf52ee42
authorAndrew Tridgell <tridge@samba.org>
Thu, 19 Mar 2009 00:21:36 +0000 (19 11:21 +1100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Sep 2009 10:27:13 +0000 (9 12:27 +0200)
tree5eee1c66dee385061fd60196729313322a8d31be
parent1f6f0fc92b1bb487fb99ac1e9c96f8f09adb9fbc
fixed a logic bug in the tevent nesting code

The event nesting code never triggered as nesting.level was never
greater than 1. The main event loop needs to increase the nesting
level by 1.

I also added a paranoia check to the nesting setup call. The API as
currently written cannot support multiple nesting hooks, so we need to
abort if multiple hooks are tried.
(cherry picked from commit 13b6663e23a424473d14324ac229a21e1e90580a)
lib/tevent/tevent.c