]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
PyEval_InitThreads is needed for Python 3.6.x (fixes #5580)
authorNick Porter <nick@portercomputing.co.uk>
Tue, 10 Jun 2025 10:49:06 +0000 (11:49 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 10 Jun 2025 10:51:44 +0000 (11:51 +0100)
The previous condition would only have included it for 3.6.0

src/modules/rlm_python3/rlm_python3.c

index 872fb3b633c52eb703777c77288dafc617d0a3d2..6df12086a74ce57993ba62a682ec4a2a963f3098 100644 (file)
@@ -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