s4-pyldb Fix tp_basicsize for PyLdbDn
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Jan 2011 05:23:23 +0000 (16:23 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 18 Jan 2011 09:55:05 +0000 (10:55 +0100)
This wasn't actually causing problems before, as the structures were
the same size.

Andrew Bartlett

source4/lib/ldb/pyldb.c

index 17c0734cf63d692e1834a613316631c73ccec5bd..e1743472c6cfe3c5610ee3b22bbaa68b530683b1 100644 (file)
@@ -368,7 +368,7 @@ static PyTypeObject PyLdbDn = {
        .tp_doc = "A LDB distinguished name.",
        .tp_new = py_ldb_dn_new,
        .tp_dealloc = (destructor)py_ldb_dn_dealloc,
-       .tp_basicsize = sizeof(PyLdbObject),
+       .tp_basicsize = sizeof(PyLdbDnObject),
        .tp_flags = Py_TPFLAGS_DEFAULT,
 };