pyldb: Fix dn concat operation to be the other way around
[mat/samba.git] / lib / ldb / pyldb.c
index 4554886e8da0a9eccdf6e436c5b80502e9359395..9c8a70b5292401823288be969fbef71cc0d3b8c5 100644 (file)
@@ -629,7 +629,7 @@ static PyObject *py_ldb_dn_concat(PyLdbDnObject *self, PyObject *py_other)
        }
        py_ret->mem_ctx = talloc_new(NULL);
        py_ret->dn = ldb_dn_copy(py_ret->mem_ctx, dn);
-       ldb_dn_add_child(py_ret->dn, other);
+       ldb_dn_add_base(py_ret->dn, other);
        return (PyObject *)py_ret;
 }