diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-04 13:08:50 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-04 13:08:50 +0000 |
commit | 9e8ab28ed924665527ef905d4494591accca5caf (patch) | |
tree | 7353eaf705fdf3acd33e4be6a6660ef89370072b /usr.sbin/bgpd | |
parent | 95f5227e4db1cff834a562520e2eac380c5cfb15 (diff) |
Make sure that a proper syntax error is produced when something else then
yes or no is used in a yes/no token. OK henning
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 6bf3eba966b..cc035287726 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.235 2009/09/04 11:50:28 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.236 2009/09/04 13:08:49 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -278,6 +278,8 @@ yesno : STRING { else if (!strcmp($1, "no")) $$ = 0; else { + yyerror("syntax error, " + "either yes or no expected"); free($1); YYERROR; } |