s4:dsdb/pydsdb.c - don't throw another exception on "PyObject_AsDn"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Dec 2010 20:42:30 +0000 (21:42 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Dec 2010 22:40:17 +0000 (23:40 +0100)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 23:40:17 CET 2010 on sn-devel-104

source4/dsdb/pydsdb.c

index f304153604a5bead4bc6d57b5b1d860e98d318e3..af035042e641ddbbb8e6a5099c60af99d65429e6 100644 (file)
@@ -167,7 +167,7 @@ static PyObject *py_samdb_set_ntds_settings_dn(PyLdbObject *self, PyObject *args
        }
 
        if (!PyObject_AsDn(tmp_ctx, py_ntds_settings_dn, ldb, &ntds_settings_dn)) {
-               PyErr_NoMemory();
+               /* exception thrown by "PyObject_AsDn" */
                talloc_free(tmp_ctx);
                return NULL;
        }