Merge pull request #12276 from opensourcerouting/fix/ospf_wrong_arg

ospfd: Get route-map name for default-information originate
This commit is contained in:
Jafar Al-Gharaibeh 2022-11-07 22:08:18 -06:00 committed by GitHub
commit 473f9912cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)) ||