]> git.ipfire.org Git - people/ms/u-boot.git/commit
lib: net_utils: enforce '.' as octet separator in string_to_ip
authorChris Packham <judge.packham@gmail.com>
Wed, 4 Jan 2017 00:36:26 +0000 (13:36 +1300)
committerTom Rini <trini@konsulko.com>
Sat, 14 Jan 2017 21:47:11 +0000 (16:47 -0500)
commitf267e40f9679fec02a3166577c78cb290017b7e3
tree6b1e118bc77a3f1ce9cf950d0cc5a1ffd59374b4
parentd921ed9a2a553afe0c13638ed339ee42d4572935
lib: net_utils: enforce '.' as octet separator in string_to_ip

Ensure '.' is used to separate octets. If another character is seen
reject the string outright and return 0.0.0.0.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
lib/net_utils.c