[PATCH 2.6.0-test3] ppp_generic.c: fix PPP compression

From: Steven Ihde
Date: Sun Aug 10 2003 - 02:53:20 EST



Hi all,

A typo in ppp_generic.c broke handling of CCP_CONFACK messages and
thus PPP compression.... this one-liner fixes it (worked for me,
anyway). Patch is against 2.6.0-test3.

Thanks,

Steven Ihde (remove "nospam4me." to reply)

diff -Naur a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c
--- a/drivers/net/ppp_generic.c 2003-08-09 04:41:36.000000000 +0000
+++ b/drivers/net/ppp_generic.c 2003-08-10 07:44:20.000000000 +0000
@@ -2073,7 +2073,7 @@
case CCP_CONFACK:
if ((ppp->flags & (SC_CCP_OPEN | SC_CCP_UP)) != SC_CCP_OPEN)
break;
- if (!pskb_may_pull(skb, len = CCP_LENGTH(dp)) + 2)
+ if (!pskb_may_pull(skb, (len = CCP_LENGTH(dp)) + 2))
return; /* too short */
dp += CCP_HDRLEN;
len -= CCP_HDRLEN;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/