From: florian Date: Wed, 21 Aug 2024 09:17:56 +0000 (+0000) Subject: We can fully spell out IP addresses in config files. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3aa6dc714b87e8f02f676c9b31c31540b7348b57;p=openbsd We can fully spell out IP addresses in config files. OK claudio --- 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;