diff options
| author | 2018-09-07 05:47:02 +0000 | |
|---|---|---|
| committer | 2018-09-07 05:47:02 +0000 | |
| commit | 7ab130d7e022dfc051481fdd74759b788f59beae (patch) | |
| tree | 2759bf8b474d0654ace10184ecfe5d0153838a5f /usr.sbin/bgpctl/parser.c | |
| parent | Add a dummy as_set_match() function since it is needed to link util.c now. (diff) | |
| download | wireguard-openbsd-7ab130d7e022dfc051481fdd74759b788f59beae.tar.xz wireguard-openbsd-7ab130d7e022dfc051481fdd74759b788f59beae.zip | |
When parsing AS numbers set both as_min and as_max to the parsed value.
Not strictly needed but better to have both initialized.
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
| -rw-r--r-- | usr.sbin/bgpctl/parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index 8db23bc3ffa..7f79c822aba 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.84 2018/09/05 09:50:43 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.85 2018/09/07 05:47:02 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -616,6 +616,7 @@ match_token(int *argc, char **argv[], const struct token table[]) break; case ASNUM: if (parse_asnum(word, wordlen, &res.as.as_min)) { + res.as.as_max = res.as.as_min; match++; t = &table[i]; } |
