diff options
Diffstat (limited to 'source4/librpc/rpc/pyrpc.c')
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c index b04ca0be30..0248a9a6e2 100644 --- a/source4/librpc/rpc/pyrpc.c +++ b/source4/librpc/rpc/pyrpc.c @@ -101,13 +101,18 @@ PyObject *py_dcerpc_call_wrapper(PyObject *self, PyObject *args, void *wrapped, PyObject *PyDescr_NewNdrRpcMethod(PyTypeObject *ifacetype, struct PyNdrRpcMethodDef *md) { struct wrapperbase *wb = calloc(sizeof(struct wrapperbase), 1); + PyObject *ret; wb->name = md->name; wb->flags = PyWrapperFlag_KEYWORDS; wb->wrapper = py_dcerpc_call_wrapper; wb->doc = md->doc; - return PyDescr_NewWrapper(ifacetype, wb, md); + ret = PyDescr_NewWrapper(ifacetype, wb, md); + + PyObject_SetAttrString(ret, "foo", PyString_FromString("bla")); + + return ret; } bool PyInterface_AddNdrRpcMethods(PyTypeObject *ifacetype, struct PyNdrRpcMethodDef *mds) |