From be70118bf2fd91b9275d0eee12904015420aa261 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Fri, 27 Sep 2019 12:33:48 +0200 Subject: [PATCH] move l->tls check upwards --- src/python.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/python.c b/src/python.c index ea85b17..4d17929 100644 --- a/src/python.c +++ b/src/python.c @@ -1377,6 +1377,7 @@ python_kore_listen(PyObject *self, PyObject *args, PyObject *kwargs) } l = kore_listener_create(name); + python_bool_from_dict(kwargs, "tls", &l->tls); if (ip != NULL) { if ((port = python_string_from_dict(kwargs, "port")) == NULL) { @@ -1399,8 +1400,6 @@ python_kore_listen(PyObject *self, PyObject *args, PyObject *kwargs) } } - python_bool_from_dict(kwargs, "tls", &l->tls); - Py_RETURN_NONE; }