summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-01 22:23:45 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-04-08 23:22:55 +0200
commit814e20e7da60f0ec33dfea1d4d6dda1b653b818d (patch)
tree3172531816e162808f1c4d93b889f2d16fe7c3bd /source4/librpc/rpc
parent7a6f1c78429183bd22e4b3e82881ac3ce2e0a1a7 (diff)
downloadsamba-814e20e7da60f0ec33dfea1d4d6dda1b653b818d.tar.gz
samba-814e20e7da60f0ec33dfea1d4d6dda1b653b818d.tar.bz2
samba-814e20e7da60f0ec33dfea1d4d6dda1b653b818d.zip
pynet: Create a net class.
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/pyrpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 2398f27d4a..9a6aa0d45a 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -313,7 +313,7 @@ PyObject *py_dcerpc_interface_init_helper(PyTypeObject *type, PyObject *args, Py
return NULL;
}
- lp_ctx = lp_from_py_object(py_lp_ctx);
+ lp_ctx = lp_from_py_object(NULL, py_lp_ctx); /* FIXME: leaky */
if (lp_ctx == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected loadparm context");
return NULL;
@@ -395,7 +395,7 @@ static PyObject *dcerpc_interface_new(PyTypeObject *self, PyObject *args, PyObje
return NULL;
}
- lp_ctx = lp_from_py_object(py_lp_ctx);
+ lp_ctx = lp_from_py_object(NULL, py_lp_ctx); /* FIXME: leaky */
if (lp_ctx == NULL) {
PyErr_SetString(PyExc_TypeError, "Expected loadparm context");
return NULL;