mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 22:14:49 +00:00
Merge pull request #370 from donaldsharp/as_path_fix
bgpd: Fix 'set as-path prepend last-as 10'
This commit is contained in:
commit
6491e6303e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user