inet_pton returns 0 and -1 for error.
authorflorian <florian@openbsd.org>
Thu, 22 Aug 2024 08:17:54 +0000 (08:17 +0000)
committerflorian <florian@openbsd.org>
Thu, 22 Aug 2024 08:17:54 +0000 (08:17 +0000)
commitf885c9d92adf97ebff462545fd95c5f3a239cc1d
tree32f0d0168b8a9fbe343eddf0150fe25faf6b1ed2
parent262a2674c1e93c642b8a091beda418ca1ffa847b
inet_pton returns 0 and -1 for error.

Adjust the error check that is now wrong after the inet_aton -> inet_pton
conversion.

Noticed by & OK bluhm.
OK tb
usr.sbin/bgpctl/parser.c
usr.sbin/bgpd/parse.y
usr.sbin/eigrpd/parse.y
usr.sbin/ldpd/parse.y