diff options
author | 2009-08-31 10:17:35 +0000 | |
---|---|---|
committer | 2009-08-31 10:17:35 +0000 | |
commit | 0d10733c8680dbfa417de59d4bd003c1ad386d35 (patch) | |
tree | 76f685da398b236e5f54155b681582d936ce98cb | |
parent | Fix mandoc magic to make the command render correctly. (diff) | |
download | wireguard-openbsd-0d10733c8680dbfa417de59d4bd003c1ad386d35.tar.xz wireguard-openbsd-0d10733c8680dbfa417de59d4bd003c1ad386d35.zip |
Just use UINT_MAX as the maximum 4-byte AS number. It is good enough here.
-rw-r--r-- | usr.sbin/bgpctl/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index bc6d0783e5a..646f26a4598 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.54 2009/06/12 16:44:02 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.55 2009/08/31 10:17:35 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -706,7 +706,7 @@ parse_asnum(const char *word, u_int32_t *asnum) if (errstr) errx(1, "AS number is %s: %s", errstr, word); } else { - uval = strtonum(word, 0, ASNUM_MAX - 1, &errstr); + uval = strtonum(word, 0, UINT_MAX, &errstr); if (errstr) errx(1, "AS number is %s: %s", errstr, word); } |