diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-07-09 22:52:33 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-22 22:20:26 +0000 |
commit | 3d33e336267f54e1fe344bf1a83af88092c5ad43 (patch) | |
tree | fa3aedda5202fe7d781a188225dfa82f31c97f3a /source4 | |
parent | 936c96620743b75d3177b787cd50478d346c5870 (diff) | |
download | samba-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')
-rw-r--r-- | source4/auth/pyauth.c | 4 |
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; } |