projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MPPP: Discard fragments even when reassembling failed
[l2tpns.git]
/
ppp.c
diff --git
a/ppp.c
b/ppp.c
index
afbffd8
..
ee299cb
100644
(file)
--- a/
ppp.c
+++ b/
ppp.c
@@
-1946,7
+1946,7
@@
void processmpin(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
// return if a lost fragment is found
if (!(this_fragmentation->fragment[begin_index].length))
// return if a lost fragment is found
if (!(this_fragmentation->fragment[begin_index].length))
-
return
; // assembling frame failed
+
goto discard_lost_frames
; // assembling frame failed
// get the end of his frame
while (this_fragmentation->fragment[end_index].length)
{
// get the end of his frame
while (this_fragmentation->fragment[end_index].length)
{
@@
-1957,7
+1957,7
@@
void processmpin(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
// return if a lost fragment is found
if (!(this_fragmentation->fragment[end_index].length))
// return if a lost fragment is found
if (!(this_fragmentation->fragment[end_index].length))
-
return
; // assembling frame failed
+
goto discard_lost_frames
; // assembling frame failed
// assemble the packet
//assemble frame, process it, reset fragmentation
// assemble the packet
//assemble frame, process it, reset fragmentation