git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d073c5f
)
s4-pydsdb: py_dsdb_am_rodc() may call samdb_rodc() only once to get the job done :)
author
Kamen Mazdrashki
<kamenim@samba.org>
Mon, 8 Nov 2010 21:57:31 +0000
(23:57 +0200)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Wed, 10 Nov 2010 08:20:02 +0000
(10:20 +0200)
source4/dsdb/pydsdb.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/pydsdb.c
b/source4/dsdb/pydsdb.c
index dbd38950225d05c8dcbbdf3ac79e1f60b4c18520..16a4cd436041429b1a3fe0dcfc4ad147bdb2e7c2 100644
(file)
--- 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;
}