mirror of https://github.com/FRRouting/frr.git
Merge pull request #12276 from opensourcerouting/fix/ospf_wrong_arg
ospfd: Get route-map name for default-information originate
This commit is contained in:
commit
473f9912cf
|
@ -9411,7 +9411,7 @@ DEFUN (ospf_default_information_originate,
|
|||
idx = 1;
|
||||
/* Get route-map */
|
||||
if (argv_find(argv, argc, "route-map", &idx))
|
||||
rtmap = argv[idx]->arg + 1;
|
||||
rtmap = argv[idx + 1]->arg;
|
||||
|
||||
/* To check if user is providing same route map */
|
||||
if ((!rtmap && !ROUTEMAP_NAME(red)) ||
|
||||
|
|
Loading…
Reference in New Issue