diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-11-18 09:36:24 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-11-18 09:36:24 +0000 |
commit | c73c76dd1da3e64dff1c5df3812436c918fc4703 (patch) | |
tree | 3b6988fb1f38bcd5461231b36a4b8f3a933341bb /usr.sbin | |
parent | e4fef7a1745bf67cf0abe0b4796319c47d1f7f3d (diff) |
Use correct name when printing the error message that a network prefix-set
is not found. Fixes crash reported by Tom Smyth.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 7b7ce5388c0..41ef8411ce6 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.362 2018/11/01 00:18:44 sashan Exp $ */ +/* $OpenBSD: parse.y,v 1.363 2018/11/18 09:36:23 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -879,7 +879,7 @@ network : NETWORK prefix filter_set { struct network *n; if ((ps = find_prefixset($3, &conf->prefixsets)) == NULL) { - yyerror("prefix-set %s not defined", ps->name); + yyerror("prefix-set '%s' not defined", $3); free($3); filterset_free($4); free($4); |