summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-19 08:58:00 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:13 +0100
commit9e6e9c7707506709de2b0e765647783f471b412a (patch)
treead21dc30de7829824a5409f20e7b4d71f7cc2d52 /source4/auth
parenta9e6240441583688388885cf48c5d3df09263784 (diff)
downloadsamba-9e6e9c7707506709de2b0e765647783f471b412a.tar.gz
samba-9e6e9c7707506709de2b0e765647783f471b412a.tar.bz2
samba-9e6e9c7707506709de2b0e765647783f471b412a.zip
pyauth: Check return value of lpcfg_from_py_object().
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/pyauth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c
index f07fa786a1..437e671bba 100644
--- a/source4/auth/pyauth.c
+++ b/source4/auth/pyauth.c
@@ -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) {