Revert "ppp: fix ppp_async_encode() illegal access"

This reverts commit da367d7cf1.
This commit is contained in:
Ksawlii 2024-11-24 00:22:56 +01:00
parent 31712644b6
commit 8fb27853c1

View file

@ -552,7 +552,7 @@ ppp_async_encode(struct asyncppp *ap)
* and 7 (code-reject) must be sent as though no options
* had been negotiated.
*/
islcp = proto == PPP_LCP && count >= 3 && 1 <= data[2] && data[2] <= 7;
islcp = proto == PPP_LCP && 1 <= data[2] && data[2] <= 7;
if (i == 0) {
if (islcp)