[PATCH] wpa_supplicant: parse int values in different bases and reject invalid

Jouni Malinen j
Sun Mar 10 08:56:51 PDT 2013


On Fri, Mar 01, 2013 at 06:12:44PM +0100, Johannes Berg wrote:
> Instead of using atoi(), use strtol() which allows checking if
> the configuration values are valid integers and can understand
> more than just decimal (also hexadecimal and octal). This not
> only allows specifying some fields in hex (which can be useful)
> but also rejecting invalid configurations, e.g.
> 	disassoc_low_ack=27 * 2
> which was previously read as just 27.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list