s4-pyrpc: use s4_event_context_init()
authorAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 02:07:56 +0000 (12:07 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 05:55:39 +0000 (15:55 +1000)
This fixes a crash when using kerberos and the python dcercpc
interface, which requires event nesting

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/librpc/rpc/pyrpc.c

index 258e4584be961ad26007698b92433281f8d26e03..bcfe8cf7953ab68192c4fa017daa2397f0891d54 100644 (file)
@@ -339,7 +339,7 @@ PyObject *py_dcerpc_interface_init_helper(PyTypeObject *type, PyObject *args, Py
        ret = PyObject_New(dcerpc_InterfaceObject, type);
        ret->mem_ctx = mem_ctx;
 
-       event_ctx = event_context_init(ret->mem_ctx);
+       event_ctx = s4_event_context_init(ret->mem_ctx);
 
        if (py_basis != Py_None) {
                struct dcerpc_pipe *base_pipe;