diff options
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/lua.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/lua.c b/accel-pppd/ctrl/ipoe/lua.c index ab95e41..4fb6380 100644 --- a/accel-pppd/ctrl/ipoe/lua.c +++ b/accel-pppd/ctrl/ipoe/lua.c @@ -204,6 +204,7 @@ out_err: log_ppp_error("ipoe: lua: %s\n", lua_tostring(L, -1)); lua_close(L); L = NULL; + pthread_setspecific(__key, L); } /*static void stackDump (lua_State *L) { @@ -266,6 +267,7 @@ out_err: file_error = 1; lua_close(L); L = NULL; + pthread_setspecific(__key, L); return -1; } |