summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-11-08 23:57:31 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-11-10 10:20:02 +0200
commit38585a74905185e87494c7326d248495b5e01e49 (patch)
treee4e3790dd571d194b1f56b7444cca7081a738993 /source4/dsdb
parentd073c5f23ae6563a65af73fd6dc88886099011da (diff)
downloadsamba-38585a74905185e87494c7326d248495b5e01e49.tar.gz
samba-38585a74905185e87494c7326d248495b5e01e49.tar.bz2
samba-38585a74905185e87494c7326d248495b5e01e49.zip
s4-pydsdb: py_dsdb_am_rodc() may call samdb_rodc() only once to get the job done :)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/pydsdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c
index dbd3895022..16a4cd4360 100644
--- a/source4/dsdb/pydsdb.c
+++ b/source4/dsdb/pydsdb.c
@@ -636,7 +636,7 @@ static PyObject *py_dsdb_am_rodc(PyObject *self, PyObject *args)
PyErr_LDB_OR_RAISE(py_ldb, ldb);
ret = samdb_rodc(ldb, &am_rodc);
- if (samdb_rodc(ldb, &am_rodc) != LDB_SUCCESS) {
+ if (ret != LDB_SUCCESS) {
PyErr_SetString(PyExc_RuntimeError, ldb_errstring(ldb));
return NULL;
}