s4-auth: Make sure ldb context is initialized even if not passed by Python code
authorAlexander Bokovoy <ab@samba.org>
Fri, 13 Apr 2012 20:44:52 +0000 (23:44 +0300)
committerAlexander Bokovoy <ab@samba.org>
Fri, 13 Apr 2012 22:20:59 +0000 (00:20 +0200)
Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Sat Apr 14 00:21:00 CEST 2012 on sn-devel-104

source4/auth/pyauth.c

index f448a4404daa09b23afa20bd4833a647b7ec2615..f07fa786a1791e4a700c087c23275331a44da951 100644 (file)
@@ -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;