提交 89917df2 编写于 作者: D Dmitry Kozlov

ipoe:lua: update thread-specific value when updating L (fixes segfault)

Signed-off-by: NDmitry Kozlov <xeb@mail.ru>
上级 bf534029
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册