summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2014-04-08 22:52:42 +0200
committerDmitry Kozlov <xeb@mail.ru>2014-04-11 06:47:26 +0400
commit411c4f943bdfdc8ebb79582d17e93923109c95b0 (patch)
tree4df680d227ef3a448638fa3c24480463acc75707 /contrib
parentba47f76156c7fbffe09c2f09fa41eb72aa5c06fd (diff)
downloadaccel-ppp-411c4f943bdfdc8ebb79582d17e93923109c95b0.tar.gz
accel-ppp-411c4f943bdfdc8ebb79582d17e93923109c95b0.zip
l2tp: don't free tunnel immediately upon message handling errors
Upon failure, l2tp_recv_SCCRP() and l2tp_recv_SCCCN() disconnect their tunnel, which is then immediately deleted by l2tp_conn_read(). Deleting the tunnel isn't necessary at this stage and prevents retransmission of the disconnection message if it gets lost. Same applies to unknown message types with M bit set. This path avoids immediate tunnel deletion, thus allowing the disconnection process to handle acknowledgments from peer and to retransmit messages if necessary. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions