mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
pyauth: Check return value of lpcfg_from_py_object().
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
a9e6240441
commit
9e6e9c7707
@ -245,6 +245,10 @@ static PyObject *py_auth_context_new(PyTypeObject *type, PyObject *args, PyObjec
|
||||
}
|
||||
|
||||
lp_ctx = lpcfg_from_py_object(mem_ctx, py_lp_ctx);
|
||||
if (lp_ctx == NULL) {
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ev = s4_event_context_init(mem_ctx);
|
||||
if (ev == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user