]> git.baikalelectronics.ru Git - uboot.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)
commiteece833ca7d4cc0a640e774aeac949d02474fdf3
tree6b1e118bc77a3f1ce9cf950d0cc5a1ffd59374b4
parentf4bc80d3112ec097977d65e5a340f6bcca573cff
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