On 2024-08-22 02:17 -06, Florian Obser <flor...@cvs.openbsd.org> wrote: > CVSROOT: /cvs > Module name: src > Changes by: flor...@cvs.openbsd.org 2024/08/22 02:17:54 > > Modified files: > usr.sbin/bgpctl: parser.c > usr.sbin/bgpd : parse.y > usr.sbin/eigrpd: parse.y > usr.sbin/ldpd : parse.y > > Log message: > 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 >
and OK claudio btw. this didn't matter in practice, the only case where inet_pton returns -1 is if af is not AF_INET or AF_INET6. But it might be copied to places where it does matter. -- In my defence, I have been left unsupervised.