Index | Thread | Search

From:
Florian Obser <florian@openbsd.org>
Subject:
ldpd: get rid of inet_aton
To:
tech <tech@openbsd.org>
Date:
Wed, 21 Aug 2024 10:43:11 +0200

Download raw body.

Thread
OK?

diff --git parse.y parse.y
index 91606fb6c10..e3c15d41508 100644
--- parse.y
+++ parse.y
@@ -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;

-- 
In my defence, I have been left unsupervised.