diff options
author | Volker Lendecke <vl@samba.org> | 2023-03-25 16:34:57 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2023-03-30 08:08:32 +0000 |
commit | f448a1649cf4af11f1ceba55ec62e9b2a3db24f1 (patch) | |
tree | af830c74c4357b96bd9e6d1356c65e14e0adbd7f /lib | |
parent | 5533ae3be0689de763aa034311a7b12b6fba9775 (diff) | |
download | samba-f448a1649cf4af11f1ceba55ec62e9b2a3db24f1.tar.gz |
pyldb: Fix a copy&paste error, CID 1524512 DEADCODE
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Mar 30 08:08:32 UTC 2023 on atb-devel-224
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/pyldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index b7bc3bf0e62..4574f398c92 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -1768,7 +1768,7 @@ static PyObject *ldb_ldif_to_pyobject(struct ldb_context *ldb, struct ldb_ldif * deleteoldrdn_obj = Py_False; } newdn_obj = pyldb_Dn_FromDn(newdn); - if (olddn_obj == NULL) { + if (newdn_obj == NULL) { deleteoldrdn_obj = NULL; Py_CLEAR(olddn_obj); return NULL; |