pynet: Create a net class.
[samba.git] / source4 / librpc / rpc / pyrpc.c
index 2398f27d4ac683699ed689cf8f66478c33129f07..9a6aa0d45af8da3cc79ef49bb6aebf659b5c0bcf 100644 (file)
@@ -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;