mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-25 01:27:05 +08:00
fixed bug #36388 (PPP: checksum-only in last pbuf leads to pbuf with zero length)
This commit is contained in:
@@ -1821,7 +1821,7 @@ pppInProc(PPPControlRx *pcrx, u_char *s, int l)
|
||||
} else {
|
||||
struct pbuf *inp;
|
||||
/* Trim off the checksum. */
|
||||
if(pcrx->inTail->len >= 2) {
|
||||
if(pcrx->inTail->len > 2) {
|
||||
pcrx->inTail->len -= 2;
|
||||
|
||||
pcrx->inTail->tot_len = pcrx->inTail->len;
|
||||
|
||||
Reference in New Issue
Block a user