summaryrefslogtreecommitdiff
path: root/accel-pppd/accel-ppp.conf.5
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2016-10-26 14:00:48 +0200
committerDmitry Kozlov <xeb@mail.ru>2016-11-12 10:33:42 +0300
commit35aa665337499ac83a1dbd46b0f77a57b82fd993 (patch)
treefba106ac91f776989b847f0ed52821eda6525f1c /accel-pppd/accel-ppp.conf.5
parent810d23477a9ca33dfa2379c3fc742c3c56df3a9d (diff)
downloadaccel-ppp-35aa665337499ac83a1dbd46b0f77a57b82fd993.tar.gz
accel-ppp-35aa665337499ac83a1dbd46b0f77a57b82fd993.zip
l2tp: fix l2tp_ctx_switch()
There are three different triton contexts that use l2tp_ctx_switch() as their ->before_switch callback (main UDP server, L2TP control and L2TP data). In UDP server and L2TP control contexts, l2tp_ctx_switch() is called with 'arg' == NULL. Only L2TP data contexts pass an ap_session pointer. So we have to check 'arg' before setting 'net' or accel-ppp would segfaults. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/accel-ppp.conf.5')
0 files changed, 0 insertions, 0 deletions