summaryrefslogtreecommitdiff
path: root/accel-pptpd/ctrl/l2tp
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-12-06 17:33:09 +0300
committerKozlov Dmitry <dima@server>2010-12-06 17:33:09 +0300
commitdeecc72f6a96153d93dccd547177676bc878a3f3 (patch)
tree72f648a13c2458f2715db2c366f9eb52eeb47623 /accel-pptpd/ctrl/l2tp
parentbdf38bdf25400e175d8b20c087c9919199fe8b6e (diff)
downloadaccel-ppp-deecc72f6a96153d93dccd547177676bc878a3f3.tar.gz
accel-ppp-deecc72f6a96153d93dccd547177676bc878a3f3.zip
switch logs on contexts which dosn't handles ppp too so potential race conditions may be arised
Diffstat (limited to 'accel-pptpd/ctrl/l2tp')
-rw-r--r--accel-pptpd/ctrl/l2tp/l2tp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/accel-pptpd/ctrl/l2tp/l2tp.c b/accel-pptpd/ctrl/l2tp/l2tp.c
index 2314748..cb891b6 100644
--- a/accel-pptpd/ctrl/l2tp/l2tp.c
+++ b/accel-pptpd/ctrl/l2tp/l2tp.c
@@ -1043,8 +1043,9 @@ static void l2tp_udp_close(struct triton_context_t *ctx)
static struct l2tp_serv_t udp_serv =
{
- .hnd.read=l2tp_udp_read,
- .ctx.close=l2tp_udp_close,
+ .hnd.read = l2tp_udp_read,
+ .ctx.close = l2tp_udp_close,
+ .ctx.before_switch = log_switch,
};
/*static struct l2tp_serv_t ip_serv =