s4-pyauth: Make sure event context allows nesting
authorAndrew Bartlett <abartlet@samba.org>
Thu, 29 Dec 2011 02:51:17 +0000 (13:51 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Dec 2011 03:01:55 +0000 (14:01 +1100)
source4/auth/pyauth.c

index 08ce9d3f7fd2383042935eed2e15ff0d3d41abe5..f448a4404daa09b23afa20bd4833a647b7ec2615 100644 (file)
@@ -30,6 +30,7 @@
 #include "auth/credentials/pycredentials.h"
 #include <tevent.h>
 #include "librpc/rpc/pyrpc_util.h"
+#include "lib/events/events.h"
 
 void initauth(void);
 
@@ -245,7 +246,7 @@ static PyObject *py_auth_context_new(PyTypeObject *type, PyObject *args, PyObjec
 
        lp_ctx = lpcfg_from_py_object(mem_ctx, py_lp_ctx);
 
-       ev = tevent_context_init(mem_ctx);
+       ev = s4_event_context_init(mem_ctx);
        if (ev == NULL) {
                PyErr_NoMemory();
                return NULL;