From 6510b2cdd21c473bd146b7630d69d06342801cb1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 8 Apr 2010 22:59:16 +0200 Subject: s4-net: Use new Net() object in net export keytab. --- source4/lib/ldb-samba/pyldb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb-samba/pyldb.c b/source4/lib/ldb-samba/pyldb.c index 084afb7603..2b7b23739e 100644 --- a/source4/lib/ldb-samba/pyldb.c +++ b/source4/lib/ldb-samba/pyldb.c @@ -54,14 +54,14 @@ static PyObject *py_ldb_set_loadparm(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "O", &py_lp_ctx)) return NULL; - lp_ctx = lp_from_py_object(py_lp_ctx); + ldb = PyLdb_AsLdbContext(self); + + lp_ctx = lp_from_py_object(ldb, py_lp_ctx); if (lp_ctx == NULL) { PyErr_SetString(PyExc_TypeError, "Expected loadparm object"); return NULL; } - ldb = PyLdb_AsLdbContext(self); - ldb_set_opaque(ldb, "loadparm", lp_ctx); Py_RETURN_NONE; -- cgit