Merge pull request #370 from donaldsharp/as_path_fix

bgpd: Fix 'set as-path prepend last-as 10'
This commit is contained in:
Martin Winter 2017-04-17 14:46:28 -07:00 committed by GitHub
commit 6491e6303e

View File

@ -1362,7 +1362,7 @@ route_set_aspath_prepend_compile (const char *arg)
{
unsigned int num;
if (sscanf(arg, "last-as %u", &num) == 1 && num > 0 && num < 10)
if (sscanf(arg, "last-as %u", &num) == 1 && num > 0 && num <= 10)
return (void*)(uintptr_t)num;
return route_aspath_compile(arg);