diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-13 19:12:50 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-03-27 00:36:31 +0100 |
commit | 40cf17eee2da0afa3bb498208879b449352cb4e1 (patch) | |
tree | e83fcbdb32f2d662346d1ea635dde0cf3dcf6eba | |
parent | 2ac1ca40f3d3c8892562caa9198ea64e76989146 (diff) | |
download | samba-40cf17eee2da0afa3bb498208879b449352cb4e1.tar.gz samba-40cf17eee2da0afa3bb498208879b449352cb4e1.tar.xz samba-40cf17eee2da0afa3bb498208879b449352cb4e1.zip |
s4:pygensec: don't pass an explicit tevent_context to gensec_update()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | source4/auth/gensec/pygensec.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source4/auth/gensec/pygensec.c b/source4/auth/gensec/pygensec.c index fd6daff3d6..e7a21ee457 100644 --- a/source4/auth/gensec/pygensec.c +++ b/source4/auth/gensec/pygensec.c @@ -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)) { |