mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 02:20:54 +00:00
isisd: fix show isis route algorithm crash
Fix crash with "show isis route algorithm X" command.
Fixes: 88e368b4dc
("isisd: make optional algorithm id in 'show isis route'")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
4bd16486e9
commit
4d0e9e2a9f
@ -3123,8 +3123,7 @@ DEFUN(show_isis_route, show_isis_route_cmd,
|
||||
#ifndef FABRICD
|
||||
if (argv_find(argv, argc, "algorithm", &idx)) {
|
||||
if (argv_find(argv, argc, "(128-255)", &idx))
|
||||
algorithm = (uint8_t)strtoul(argv[idx + 1]->arg, NULL,
|
||||
10);
|
||||
algorithm = (uint8_t)strtoul(argv[idx]->arg, NULL, 10);
|
||||
else
|
||||
all_algorithm = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user