
5 Jan
2017
5 Jan
'17
8:58 a.m.
Hi Wolfgang,
On Wed, Jan 4, 2017 at 11:04 PM, Wolfgang Denk wd@denx.de wrote:
Dear Chris,
In message 20170104003626.4211-1-judge.packham@gmail.com you wrote:
With the input "1234192.168.1.1" the old behaviour would truncate the address to 192.168.1.1. New behaviour rejects the string outright and returns 0.0.0.0, which for the purposes of IP addresses can be considered an error.
Does code that calls string_to_ip() check for such an error condition?
It does by virtue of the fact that it will consider the global variables for the various ip addresses unset and complain.