lkml.org 
[lkml]   [2003]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6.0-test3] ppp_generic.c: fix PPP compression

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.296 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site