diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2014-04-08 22:52:42 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-04-11 06:47:26 +0400 |
commit | 411c4f943bdfdc8ebb79582d17e93923109c95b0 (patch) | |
tree | 4df680d227ef3a448638fa3c24480463acc75707 /contrib | |
parent | ba47f76156c7fbffe09c2f09fa41eb72aa5c06fd (diff) | |
download | accel-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