From: Nick Porter Date: Tue, 10 Jun 2025 10:49:06 +0000 (+0100) Subject: PyEval_InitThreads is needed for Python 3.6.x (fixes #5580) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d987004e8aadeba460e29ccb8bca643a9e45a7a1;p=thirdparty%2Ffreeradius-server.git PyEval_InitThreads is needed for Python 3.6.x (fixes #5580) The previous condition would only have included it for 3.6.0 --- diff --git a/src/modules/rlm_python3/rlm_python3.c b/src/modules/rlm_python3/rlm_python3.c index 872fb3b633..6df12086a7 100644 --- a/src/modules/rlm_python3/rlm_python3.c +++ b/src/modules/rlm_python3/rlm_python3.c @@ -1183,7 +1183,7 @@ static int python_interpreter_init(rlm_python_t *inst, CONF_SECTION *conf) #if PY_VERSION_HEX <= 0x030a0000 Py_InitializeEx(0); /* Don't override signal handlers - noop on subs calls */ -#if PY_VERSION_HEX <= 0x03060000 +#if PY_VERSION_HEX < 0x03070000 PyEval_InitThreads(); /* This also grabs a lock (which we then need to release) */ #endif #endif