提交 3a293aab 编写于 作者: K Kozlov Dmitry

ppp: fixed bug when saving seq

上级 760e7498
...@@ -596,8 +596,10 @@ static void save_seq(void) ...@@ -596,8 +596,10 @@ static void save_seq(void)
opt = "/var/run/accel-pptp/seq"; opt = "/var/run/accel-pptp/seq";
f = fopen(opt, "w"); f = fopen(opt, "w");
fprintf(f, "%llu", sid); if (f) {
fclose(f); fprintf(f, "%llu", sid);
fclose(f);
}
} }
static void __init init(void) static void __init init(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册