From 3e2e05dd19885f9e2f7e605c58ef650c970874c8 Mon Sep 17 00:00:00 2001 From: Benjamin Cama Date: Thu, 26 Jan 2012 23:44:55 +0100 Subject: [PATCH] MPPP: Discard fragments even when reassembling failed --- ppp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppp.c b/ppp.c index afbffd8..ee299cb 100644 --- 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; // assembling frame failed + goto discard_lost_frames; // assembling frame failed // 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; // assembling frame failed + goto discard_lost_frames; // assembling frame failed // assemble the packet //assemble frame, process it, reset fragmentation -- 2.20.1