summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-12-23 17:45:48 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-12-23 17:45:48 +0000
commit67ef202a25aac6aae8bb74628a3080c3fe0441dd (patch)
tree627ef4f102789062dcc62671ed3250fa95d7aafc /usr.sbin
parent656d7d1ab438ccedccc0b55f7dc1b1d0bf3875ec (diff)
must only try to match PEERDESC of nothing else matched, it's just a string
and will match almost everything...
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index 43bb718c1e6..2252f73da7e 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.10 2004/12/23 17:26:51 henning Exp $ */
+/* $OpenBSD: parser.c,v 1.11 2004/12/23 17:45:47 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -268,7 +268,7 @@ match_token(const char *word, const struct token table[])
}
break;
case PEERDESC:
- if (word != NULL && strlen(word) > 0) {
+ if (!match && word != NULL && strlen(word) > 0) {
if (strlcpy(res.peerdesc, word,
sizeof(res.peerdesc)) >=
sizeof(res.peerdesc))