summaryrefslogtreecommitdiff
path: root/source4/auth/pyauth.c
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-07-09 22:52:33 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-07-22 22:20:26 +0000
commit3d33e336267f54e1fe344bf1a83af88092c5ad43 (patch)
treefa3aedda5202fe7d781a188225dfa82f31c97f3a /source4/auth/pyauth.c
parent936c96620743b75d3177b787cd50478d346c5870 (diff)
downloadsamba-3d33e336267f54e1fe344bf1a83af88092c5ad43.tar.gz
s4/auth/py: avoid null deref with bad python arguments
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth/pyauth.c')
-rw-r--r--source4/auth/pyauth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c
index 8d44b8572c2..4203692025b 100644
--- a/source4/auth/pyauth.c
+++ b/source4/auth/pyauth.c
@@ -76,7 +76,7 @@ static PyObject *py_copy_session_info(PyObject *module,
PyErr_Format(PyExc_TypeError,
"Expected auth_session_info for session_info "
"argument got %s",
- talloc_get_name(pytalloc_get_ptr(py_session)));
+ pytalloc_get_name(py_session));
return NULL;
}
@@ -258,7 +258,7 @@ static PyObject *py_session_info_fill_unix(PyObject *module,
if (!session_info) {
PyErr_Format(PyExc_TypeError,
"Expected auth_session_info for session_info argument got %s",
- talloc_get_name(pytalloc_get_ptr(py_session)));
+ pytalloc_get_name(py_session));
return NULL;
}