diff options
Diffstat (limited to 'usr.sbin/eigrpd/parse.y')
-rw-r--r-- | usr.sbin/eigrpd/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/eigrpd/parse.y b/usr.sbin/eigrpd/parse.y index 76118b4072a..56487cdee38 100644 --- a/usr.sbin/eigrpd/parse.y +++ b/usr.sbin/eigrpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.33 2024/08/21 09:20:36 florian Exp $ */ +/* $OpenBSD: parse.y,v 1.34 2024/08/22 08:17:54 florian Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -223,7 +223,7 @@ varset : STRING '=' string { ; conf_main : ROUTERID STRING { - if (!inet_pton(AF_INET, $2, &conf->rtr_id)) { + if (inet_pton(AF_INET, $2, &conf->rtr_id) != 1) { yyerror("error parsing router-id"); free($2); YYERROR; |