From ae0a2ab3e8298d8d06a0deb861761462fcf95a59 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 21 Aug 2024 09:20:36 +0000 Subject: [PATCH] We can fully spell out IP addresses in config files. OK claudio --- usr.sbin/eigrpd/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1