kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 6b3347ae3a46896fb0cb6d6fae4c0fb15147dcd3
parent 7613a4a13550d212ac60de7642234b1fc495baeb
Author: Joris Vink <joris@coders.se>
Date:   Wed, 12 Aug 2020 13:43:38 +0200

coro_running could be NULL, check it.

Diffstat:
src/python.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/python.c b/src/python.c @@ -1810,7 +1810,7 @@ python_kore_task_kill(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "I", &id)) return (NULL); - if (coro_running->id == id) { + if (coro_running != NULL && coro_running->id == id) { PyErr_SetString(PyExc_RuntimeError, "refusing to kill active coroutine"); return (NULL);