From: Simo Sorce Date: Fri, 4 Feb 2011 01:51:45 +0000 (-0500) Subject: mit-samba: Allow nesting on the event context X-Git-Tag: tevent-0.9.11~894 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=1d27f0b26431d32d969d1ad10d47c396d1c7517f;p=sfrench%2Fsamba-autobuild%2F.git mit-samba: Allow nesting on the event context This context is used in ldb, and ldb modules apparently abort if nesting is not allowed. Autobuild-User: Simo Sorce Autobuild-Date: Mon Feb 7 20:58:02 CET 2011 on sn-devel-104 --- diff --git a/source4/kdc/mit_samba.c b/source4/kdc/mit_samba.c index b9599789104..dcabe39db67 100644 --- a/source4/kdc/mit_samba.c +++ b/source4/kdc/mit_samba.c @@ -17,6 +17,8 @@ along with this program. If not, see . */ +#define TEVENT_DEPRECATED 1 + #include "includes.h" #include "param/param.h" #include "dsdb/samdb/samdb.h" @@ -68,6 +70,7 @@ static int mit_samba_context_init(struct mit_samba_context **_ctx) ret = ENOMEM; goto done; } + tevent_loop_allow_nesting(base_ctx.ev_ctx); base_ctx.lp_ctx = loadparm_init_global(false); if (!base_ctx.lp_ctx) { ret = ENOMEM;