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 c246bfb commit 8fe992fCopy full SHA for 8fe992f
drivers/net/ppp/ppp_async.c
@@ -541,7 +541,7 @@ ppp_async_encode(struct asyncppp *ap)
541
* and 7 (code-reject) must be sent as though no options
542
* had been negotiated.
543
*/
544
- islcp = proto == PPP_LCP && 1 <= data[2] && data[2] <= 7;
+ islcp = proto == PPP_LCP && count >= 3 && 1 <= data[2] && data[2] <= 7;
545
546
if (i == 0) {
547
if (islcp)
0 commit comments