We can fully spell out IP addresses in config files.
authorflorian <florian@openbsd.org>
Wed, 21 Aug 2024 09:20:36 +0000 (09:20 +0000)
committerflorian <florian@openbsd.org>
Wed, 21 Aug 2024 09:20:36 +0000 (09:20 +0000)
OK claudio

usr.sbin/eigrpd/parse.y

index 5101770..76118b4 100644 (file)
@@ -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 <renato@openbsd.org>
@@ -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;