summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2012-04-13 23:44:52 +0300
committerAlexander Bokovoy <ab@samba.org>2012-04-14 00:20:59 +0200
commitf9ec6ff0733d0f068338b16d2589cd3debf8f087 (patch)
tree93bded49b3ab2669af052f885c9f8a458614172f /source4
parent55cbf7ba340d91c473f57fe8e5deb8d082131b0a (diff)
downloadsamba-f9ec6ff0733d0f068338b16d2589cd3debf8f087.tar.gz
samba-f9ec6ff0733d0f068338b16d2589cd3debf8f087.tar.bz2
samba-f9ec6ff0733d0f068338b16d2589cd3debf8f087.zip
s4-auth: Make sure ldb context is initialized even if not passed by Python code
Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Sat Apr 14 00:21:00 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/pyauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c
index f448a4404d..f07fa786a1 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;