diff options
author | Frank Cusack <fcusack@fcusack.com> | 2003-01-30 11:22:08 +0000 |
---|---|---|
committer | Frank Cusack <fcusack@fcusack.com> | 2003-01-30 11:22:08 +0000 |
commit | 88354bdada295b51ce2d8677afa8897579794ac4 (patch) | |
tree | ba2ae15d0969c37438b7392e423b4a134c42be62 /linux | |
parent | f0b99c0189004a7ee11005f8dd1218b1c97610e7 (diff) |
tell the decompressor about the extra bytes we allocated
Diffstat (limited to 'linux')
-rw-r--r-- | linux/mppe/linux-2.4.18-pad.patch | 6 |
1 files changed, 5 insertions, 1 deletions
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); |