pytalloc: ensure talloc_ctx is directly after PyObject_HEAD
[kai/samba-autobuild/.git] / source4 / auth / credentials / pycredentials.h
index 6d03ca158b03f71f8764c125f3349d4d990ab007..09deb05e58eb59f44c3c8c78c64bbaf6a658ad85 100644 (file)
@@ -26,8 +26,8 @@ PyAPI_DATA(PyTypeObject) PyCredentials;
 PyAPI_DATA(PyTypeObject) PyCredentialCacheContainer;
 typedef struct {
        PyObject_HEAD
-       struct ccache_container *ccc;
        TALLOC_CTX *mem_ctx;
+       struct ccache_container *ccc;
 } PyCredentialCacheContainerObject;
 #define PyCredentials_Check(py_obj) PyObject_TypeCheck(py_obj, &PyCredentials)
 #define PyCredentials_AsCliCredentials(py_obj) py_talloc_get_type(py_obj, struct cli_credentials)