Commit 068990ad authored by Paul Mackerras's avatar Paul Mackerras Committed by David S. Miller

[PPP]: Fix PPP Deflate sequence number checking

parent f1f080f8
......@@ -456,10 +456,10 @@ int z_decompress(void *arg, unsigned char *ibuf, int isize,
/* Check the sequence number. */
seq = (ibuf[PPP_HDRLEN] << 8) + ibuf[PPP_HDRLEN+1];
if (seq != state->seqno) {
if (seq != (state->seqno & 0xffff)) {
if (state->debug)
printk(KERN_DEBUG "z_decompress%d: bad seq # %d, expected %d\n",
state->unit, seq, state->seqno);
state->unit, seq, state->seqno & 0xffff);
return DECOMP_ERROR;
}
++state->seqno;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment