fixed a logic bug in the tevent nesting code
authorAndrew Tridgell <tridge@samba.org>
Thu, 19 Mar 2009 00:21:36 +0000 (11:21 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 19 Mar 2009 00:21:36 +0000 (11:21 +1100)
commit13b6663e23a424473d14324ac229a21e1e90580a
tree6107cb53502cdcc8f2b14a426429fbea8b900f32
parent710948c7885b228afe5e1b3bed005f50c57d519b
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.
lib/tevent/tevent.c