summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-09-24 11:28:47 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-09-27 01:54:26 +0200
commitd786e1fca95395e793867278bc0408e33c19908b (patch)
tree31111fb3679fdc2ed8f1da2eee651d121c03311c /lib
parent5a73f904e192c44e304850287ac439d0b52f7be5 (diff)
downloadsamba-d786e1fca95395e793867278bc0408e33c19908b.tar.gz
lib/ldb: Test correct variable for no mem condition
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/pyldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c
index 66bc2021fb4..afc86300f3d 100644
--- a/lib/ldb/pyldb.c
+++ b/lib/ldb/pyldb.c
@@ -927,7 +927,7 @@ static PyObject *py_ldb_dn_new(PyTypeObject *type, PyObject *args, PyObject *kwa
}
py_ret = (PyLdbDnObject *)type->tp_alloc(type, 0);
- if (ret == NULL) {
+ if (py_ret == NULL) {
talloc_free(mem_ctx);
PyErr_NoMemory();
return NULL;