From: florian Date: Wed, 21 Aug 2024 09:20:36 +0000 (+0000) Subject: We can fully spell out IP addresses in config files. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ae0a2ab3e8298d8d06a0deb861761462fcf95a59;p=openbsd We can fully spell out IP addresses in config files. OK claudio --- diff --git a/usr.sbin/eigrpd/parse.y b/usr.sbin/eigrpd/parse.y index 5101770e7ad..76118b4072a 100644 --- a/usr.sbin/eigrpd/parse.y +++ b/usr.sbin/eigrpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.32 2021/10/15 15:01:28 naddy Exp $ */ +/* $OpenBSD: parse.y,v 1.33 2024/08/21 09:20:36 florian Exp $ */ /* * Copyright (c) 2015 Renato Westphal @@ -223,7 +223,7 @@ varset : STRING '=' string { ; conf_main : ROUTERID STRING { - if (!inet_aton($2, &conf->rtr_id)) { + if (!inet_pton(AF_INET, $2, &conf->rtr_id)) { yyerror("error parsing router-id"); free($2); YYERROR;