]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Actually use inst->wide_name
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Aug 2017 14:52:41 +0000 (22:52 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Aug 2017 14:53:03 +0000 (22:53 +0800)
src/modules/rlm_python/rlm_python.c

index 6803e3ab1b7384f2128a5fbcdd4f99519ff413f0..e79f83e98d1f7da553cd2618554d04942eb95469 100644 (file)
@@ -914,7 +914,7 @@ static int python_interpreter_init(rlm_python_t *inst, CONF_SECTION *conf)
 #if PY_VERSION_HEX > 0x03050000
                {
                        inst->wide_name = Py_DecodeLocale(main_config.name, strlen(main_config.name));
-                       Py_SetProgramName(name);                /* The value of argv[0] as a wide char string */
+                       Py_SetProgramName(inst->wide_name);             /* The value of argv[0] as a wide char string */
                }
 #else
                {