diff options
Diffstat (limited to 'source4/auth/pyauth.h')
-rw-r--r-- | source4/auth/pyauth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/pyauth.h b/source4/auth/pyauth.h index de1c1c54ea..f5c63392ac 100644 --- a/source4/auth/pyauth.h +++ b/source4/auth/pyauth.h @@ -24,7 +24,7 @@ #include "auth/session.h" PyAPI_DATA(PyTypeObject) PyAuthSession; -#define PyAuthSession_AsSession(obj) py_talloc_get_ptr(obj) +#define PyAuthSession_AsSession(obj) py_talloc_get_type(obj, struct auth_session_info) #define PyAuthSession_Check(obj) PyObject_TypeCheck(obj, &PyAuthSession) struct auth_session_info *PyObject_AsSession(PyObject *obj); PyObject *PyAuthSession_FromSession(struct auth_session_info *session); |