diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-24 15:33:49 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-24 15:33:49 +0000 |
commit | 554916cc0a9cc8e679ebcf5d19a1a2cab2d802ae (patch) | |
tree | d43df04be44ef08da854863e1a6e8e6d6b6ed57b /usr.sbin | |
parent | dd6e8ad88c5325d13d558de8669f7c53321295e5 (diff) |
don't do the pftable_exists() check if we are running -n, needs root
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 3241fa1ae61..242461d5c04 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.138 2004/08/24 15:30:07 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.139 2004/08/24 15:33:48 henning Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1096,7 +1096,8 @@ filter_set_opt : LOCALPREF number { } | PFTABLE string { $$.flags = SET_PFTABLE; - if (pftable_exists($2) != 0) { + if (!(conf->opts & BGPD_OPT_NOACTION) && + pftable_exists($2) != 0) { yyerror("pftable name does not exist"); free($2); YYERROR; |