summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-02-03 20:51:45 -0500
committerSimo Sorce <idra@samba.org>2011-02-07 20:58:02 +0100
commit1d27f0b26431d32d969d1ad10d47c396d1c7517f (patch)
tree6f26ac311009fc09bdf670ee59c0915ebebc411b
parent1d58fcc9259d929093d381f0bd6690345e7c8040 (diff)
downloadsamba-1d27f0b26431d32d969d1ad10d47c396d1c7517f.tar.gz
samba-1d27f0b26431d32d969d1ad10d47c396d1c7517f.tar.bz2
samba-1d27f0b26431d32d969d1ad10d47c396d1c7517f.zip
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 <idra@samba.org> Autobuild-Date: Mon Feb 7 20:58:02 CET 2011 on sn-devel-104
-rw-r--r--source4/kdc/mit_samba.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/kdc/mit_samba.c b/source4/kdc/mit_samba.c
index b959978910..dcabe39db6 100644
--- a/source4/kdc/mit_samba.c
+++ b/source4/kdc/mit_samba.c
@@ -17,6 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#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;