diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-04-08 22:59:16 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-04-08 23:22:55 +0200 |
commit | 6510b2cdd21c473bd146b7630d69d06342801cb1 (patch) | |
tree | cfa6db5fce35bc5d86467e98fbcdf43cc5cd939a /source4/lib | |
parent | 814e20e7da60f0ec33dfea1d4d6dda1b653b818d (diff) | |
download | samba-6510b2cdd21c473bd146b7630d69d06342801cb1.tar.gz samba-6510b2cdd21c473bd146b7630d69d06342801cb1.tar.bz2 samba-6510b2cdd21c473bd146b7630d69d06342801cb1.zip |
s4-net: Use new Net() object in net export keytab.
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb-samba/pyldb.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |