We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb218d commit 40dddd4Copy full SHA for 40dddd4
drivers/net/ppp/ppp_async.c
@@ -542,7 +542,7 @@ ppp_async_encode(struct asyncppp *ap)
542
* and 7 (code-reject) must be sent as though no options
543
* had been negotiated.
544
*/
545
- islcp = proto == PPP_LCP && 1 <= data[2] && data[2] <= 7;
+ islcp = proto == PPP_LCP && count >= 3 && 1 <= data[2] && data[2] <= 7;
546
547
if (i == 0) {
548
if (islcp)
0 commit comments