diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-08-31 10:17:36 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-08-31 10:17:36 +0000 |
commit | cab1195793690cd7ee1745767c3988907a8d20b4 (patch) | |
tree | 4ca51eb709557e8e036593a4d443a57aa2c44a9e /usr.sbin | |
parent | ac1145077d1a577ab900c5fa2a0b9a5014ef9dc8 (diff) |
Just use UINT_MAX as the maximum 4-byte AS number. It is good enough here.
Diffstat (limited to 'usr.sbin')
-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); } |