diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tevent/tevent.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index 87e5aff034..51555bae5d 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -185,6 +185,13 @@ int tevent_common_context_destructor(struct tevent_context *ev) tevent_cleanup_pending_signal_handlers(se); } + /* clean up nesting or we get an abort when nesting + * is not allowed. -- SSS */ + ev->nesting.allowed = false; + ev->nesting.level = 0; + ev->nesting.hook_fn = NULL; + ev->nesting.hook_private = NULL; + return 0; } |