From: Frank Cusack Date: Thu, 30 Jan 2003 11:22:08 +0000 (+0000) Subject: tell the decompressor about the extra bytes we allocated X-Git-Tag: ppp-2.4.7~338 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=88354bdada295b51ce2d8677afa8897579794ac4 tell the decompressor about the extra bytes we allocated --- diff --git a/linux/mppe/linux-2.4.18-pad.patch b/linux/mppe/linux-2.4.18-pad.patch index 30c6971..00c71ae 100644 --- a/linux/mppe/linux-2.4.18-pad.patch +++ b/linux/mppe/linux-2.4.18-pad.patch @@ -48,7 +48,7 @@ } } -@@ -1515,7 +1534,7 @@ +@@ -1515,11 +1534,11 @@ int len; if (proto == PPP_COMP) { @@ -57,3 +57,7 @@ if (ns == 0) { printk(KERN_ERR "ppp_decompress_frame: no memory\n"); goto err; + } + /* the decompressor still expects the A/C bytes in the hdr */ + len = ppp->rcomp->decompress(ppp->rc_state, skb->data - 2, + skb->len + 2, ns->data, ppp->mru + 128 + PPP_HDRLEN);