From 3aa6dc714b87e8f02f676c9b31c31540b7348b57 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 21 Aug 2024 09:17:56 +0000 Subject: [PATCH] We can fully spell out IP addresses in config files. OK claudio --- usr.sbin/ldpd/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ldpd/parse.y b/usr.sbin/ldpd/parse.y index 91606fb6c10..d35621cc1e0 100644 --- a/usr.sbin/ldpd/parse.y +++ b/usr.sbin/ldpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.72 2021/10/15 15:01:28 naddy Exp $ */ +/* $OpenBSD: parse.y,v 1.73 2024/08/21 09:17:56 florian Exp $ */ /* * Copyright (c) 2013, 2015, 2016 Renato Westphal @@ -203,7 +203,7 @@ string : string STRING { ; routerid : STRING { - if (!inet_aton($1, &$$)) { + if (!inet_pton(AF_INET, $1, &$$)) { yyerror("%s: error parsing router id", $1); free($1); YYERROR; -- 2.20.1