diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2015-04-17 07:51:10 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2015-04-17 07:51:10 +0000 |
commit | 8db24c8d03f617a6ebf6f7835edf5b50bd0a1f74 (patch) | |
tree | 11ddfe746af0ab931a4b6a763bb6bff7ef062be2 /usr.sbin/bgpctl/parser.c | |
parent | c70c93731e62133b902b8e7884d5d31c8119a381 (diff) |
parse_prefix in parse.c got changed but the declaration in bgpctl.c
wasn't updated, so we would crash when doing `bgpctl net bulk` commands.
Fix by moving parse_prefix into a header, since we use it in more than
one file.
crash found by henning@
underlying problem found by blambert@
OK sthen@ deraadt@ claudio@ henning@
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-rw-r--r-- | usr.sbin/bgpctl/parser.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index bf48e3f591f..aca49369622 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.69 2014/11/19 21:11:41 tedu Exp $ */ +/* $OpenBSD: parser.c,v 1.70 2015/04/17 07:51:09 phessler Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -386,8 +386,6 @@ const struct token *match_token(int *argc, char **argv[], const struct token []); void show_valid_args(const struct token []); int parse_addr(const char *, struct bgpd_addr *); -int parse_prefix(const char *, size_t, struct bgpd_addr *, - u_int8_t *); int parse_asnum(const char *, size_t, u_int32_t *); int parse_number(const char *, struct parse_result *, enum token_type); |