fix return value for inet_pton in ipv6 failure cases
authorRich Felker <dalias@aerifal.cx>
Sun, 20 Oct 2013 02:36:30 +0000 (22:36 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 20 Oct 2013 02:36:30 +0000 (22:36 -0400)
commit38b9c0274974a1b9941adb2e59238b153704151f
tree0fd11ed0d81ed1d3cbd4d8c2c6cc4e3ed073c7db
parentebb4cc0fec110edc7caf5ae545bfb816565a060d
fix return value for inet_pton in ipv6 failure cases

in the case of input that does not match the expected form, the
correct return value is 0, not -1.
src/network/inet_pton.c