From 38585a74905185e87494c7326d248495b5e01e49 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 8 Nov 2010 23:57:31 +0200 Subject: s4-pydsdb: py_dsdb_am_rodc() may call samdb_rodc() only once to get the job done :) --- source4/dsdb/pydsdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb') 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; } -- cgit