fixed a logic bug in the tevent nesting code
commit418fb51e85ffc36a01daa04fe0d1263cbf6a1872
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:45:00 +0000 (9 12:45 +0200)
tree161fedf4c23e80bad64579640079d0c3fcc20f85
parent51b088dc5c3a8421d11aed352e5463f8551035c3
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)
(cherry picked from commit 6e968a6f12de83be431e6244c34bb3cecf52ee42)
lib/tevent/tevent.c