From: Alexander Bokovoy Date: Fri, 13 Apr 2012 20:44:52 +0000 (+0300) Subject: s4-auth: Make sure ldb context is initialized even if not passed by Python code X-Git-Tag: ldb-1.1.6~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9ec6ff0733d0f068338b16d2589cd3debf8f087;p=thirdparty%2Fsamba.git s4-auth: Make sure ldb context is initialized even if not passed by Python code Autobuild-User: Alexander Bokovoy Autobuild-Date: Sat Apr 14 00:21:00 CEST 2012 on sn-devel-104 --- diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c index f448a4404da..f07fa786a17 100644 --- a/source4/auth/pyauth.c +++ b/source4/auth/pyauth.c @@ -223,7 +223,7 @@ static PyObject *py_auth_context_new(PyTypeObject *type, PyObject *args, PyObjec struct imessaging_context *imessaging_context = NULL; struct loadparm_context *lp_ctx; struct tevent_context *ev; - struct ldb_context *ldb; + struct ldb_context *ldb = NULL; NTSTATUS nt_status; const char **methods;