diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-18 11:25:21 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-18 13:34:04 +0100 |
commit | 5e9ce495eef98b2b27a77bf042514ccb2037d33d (patch) | |
tree | 657dd0c58f72d34bf4020aa46ba563d1490ab94f /source4/librpc/rpc/pyrpc.c | |
parent | f055fce74c0f569e8bfcf29e5c4fadb592a7c87d (diff) | |
download | samba-5e9ce495eef98b2b27a77bf042514ccb2037d33d.tar.gz samba-5e9ce495eef98b2b27a77bf042514ccb2037d33d.tar.bz2 samba-5e9ce495eef98b2b27a77bf042514ccb2037d33d.zip |
s4:librpc/rpc: let pyrpc make use of dcerpc_binding_handle stubs
metze
Diffstat (limited to 'source4/librpc/rpc/pyrpc.c')
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c index 00bc6835f4..012f188ce1 100644 --- a/source4/librpc/rpc/pyrpc.c +++ b/source4/librpc/rpc/pyrpc.c @@ -57,7 +57,7 @@ static PyObject *py_dcerpc_run_function(dcerpc_InterfaceObject *iface, return NULL; } - status = md->call(iface->pipe, mem_ctx, r); + status = md->call(iface->binding_handle, mem_ctx, r); if (NT_STATUS_IS_ERR(status)) { PyErr_SetDCERPCStatus(iface->pipe, status); talloc_free(mem_ctx); @@ -356,6 +356,7 @@ PyObject *py_dcerpc_interface_init_helper(PyTypeObject *type, PyObject *args, Py } ret->pipe->conn->flags |= DCERPC_NDR_REF_ALLOC; + ret->binding_handle = ret->pipe->binding_handle; return (PyObject *)ret; } @@ -425,6 +426,7 @@ static PyObject *dcerpc_interface_new(PyTypeObject *self, PyObject *args, PyObje } ret->pipe = NULL; + ret->binding_handle = NULL; if (py_basis != Py_None) { struct dcerpc_pipe *base_pipe; @@ -451,6 +453,7 @@ static PyObject *dcerpc_interface_new(PyTypeObject *self, PyObject *args, PyObje return NULL; } ret->pipe->conn->flags |= DCERPC_NDR_REF_ALLOC; + ret->binding_handle = ret->pipe->binding_handle; return (PyObject *)ret; } |