1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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>
This commit is contained in:
Douglas Bagnall 2019-07-09 22:52:33 +12:00 committed by Andrew Bartlett
parent 936c966207
commit 3d33e33626

View File

@ -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;
}