]> git.ozlabs.org Git - ppp.git/commitdiff
tell the decompressor about the extra bytes we allocated
authorFrank Cusack <fcusack@fcusack.com>
Thu, 30 Jan 2003 11:22:08 +0000 (11:22 +0000)
committerFrank Cusack <fcusack@fcusack.com>
Thu, 30 Jan 2003 11:22:08 +0000 (11:22 +0000)
linux/mppe/linux-2.4.18-pad.patch

index 30c697102900b8c2ae30a49c502acf8ef1691a84..00c71ae85facb62a47a8bc4da3d3e49588a6937c 100644 (file)
@@ -48,7 +48,7 @@
                }
        }
  
                }
        }
  
-@@ -1515,7 +1534,7 @@
+@@ -1515,11 +1534,11 @@
        int len;
  
        if (proto == PPP_COMP) {
        int len;
  
        if (proto == PPP_COMP) {
@@ -57,3 +57,7 @@
                if (ns == 0) {
                        printk(KERN_ERR "ppp_decompress_frame: no memory\n");
                        goto err;
                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);