projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d1fefd
)
MPPP: Discard fragments even when reassembling failed
mppp-fixes
author
Benjamin Cama
<benoar@dolka.fr>
Thu, 26 Jan 2012 22:44:55 +0000
(23:44 +0100)
committer
Benjamin Cama
<benoar@dolka.fr>
Thu, 26 Jan 2012 22:44:55 +0000
(23:44 +0100)
ppp.c
patch
|
blob
|
history
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