]> git.ozlabs.org Git - ppp.git/commit
pppd: Widen types in ipcp_reqci
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 20 Aug 2024 08:21:47 +0000 (18:21 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 20 Aug 2024 08:21:47 +0000 (18:21 +1000)
commit142a8d48924408c4309025f72600b88f9f0510b2
treeccf59432abcffea80bfbc496c75f821b4bd612d1
parent05b737b37fc57781b327b7e294cee0028780bb58
pppd: Widen types in ipcp_reqci

The reason is to avoid a theoretically possible overflow of cilen.
Using u_int32_t rather than u_short probably generates better code
on many machines anyway.  Also change l from int to unsigned so as
to avoid any possibility of integer overflow.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/ipcp.c