1
0
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:
Andreas Schneider 2013-02-19 08:58:00 +01:00 committed by Alexander Bokovoy
parent a9e6240441
commit 9e6e9c7707

View File

@ -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) {