s4:pygensec: don't pass an explicit tevent_context to gensec_update()
authorStefan Metzmacher <metze@samba.org>
Fri, 13 Dec 2013 18:12:50 +0000 (19:12 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 26 Mar 2014 23:36:31 +0000 (00:36 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/gensec/pygensec.c

index fd6daff3d67c118726041018cc6d591f94bf4e09..e7a21ee457ef5be750aee21fa868169ac3fdf9bb 100644 (file)
@@ -401,7 +401,6 @@ static PyObject *py_gensec_update(PyObject *self, PyObject *args)
        PyObject *ret, *py_in;
        struct gensec_security *security = pytalloc_get_type(self, struct gensec_security);
        PyObject *finished_processing;
-       struct tevent_context *ev;
 
        if (!PyArg_ParseTuple(args, "O", &py_in))
                return NULL;
@@ -416,14 +415,7 @@ static PyObject *py_gensec_update(PyObject *self, PyObject *args)
        in.data = (uint8_t *)PyString_AsString(py_in);
        in.length = PyString_Size(py_in);
 
-       ev = samba_tevent_context_init(mem_ctx);
-       if (ev == NULL) {
-               PyErr_NoMemory();
-               PyObject_Del(self);
-               return NULL;
-       }
-
-       status = gensec_update(security, mem_ctx, ev, in, &out);
+       status = gensec_update(security, mem_ctx, NULL, in, &out);
 
        if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)
            && !NT_STATUS_IS_OK(status)) {