diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/messaging/pymessaging.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/messaging/pymessaging.c b/source4/lib/messaging/pymessaging.c index e05d5eb1f1..1c22fb431a 100644 --- a/source4/lib/messaging/pymessaging.c +++ b/source4/lib/messaging/pymessaging.c @@ -530,6 +530,7 @@ static bool irpc_AddNdrRpcMethods(PyTypeObject *ifacetype, const struct PyNdrRpc void initmessaging(void) { + extern void initirpc(void); PyObject *mod; if (PyType_Ready(&irpc_ClientConnectionType) < 0) @@ -548,6 +549,8 @@ void initmessaging(void) if (mod == NULL) return; + initirpc(); + Py_INCREF((PyObject *)&irpc_ClientConnectionType); PyModule_AddObject(mod, "ClientConnection", (PyObject *)&irpc_ClientConnectionType); |