summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2022-11-08 00:25:34 -0600
committerGitHub <noreply@github.com>2022-11-08 00:25:34 -0600
commit6ffc00d9502acfc46a95f30f46c40eb51ef2cd3b (patch)
tree251e58f55b28e326e3404f75430bb0bda0029af1
parent99477bc4925725a9f371149e5396937936b2a855 (diff)
parent4a21c603e075eb606b33880f8ad9044a39a48a36 (diff)
Merge pull request #12277 from FRRouting/mergify/bp/stable/8.4/pr-12276
ospfd: Get route-map name for default-information originate (backport #12276)
-rw-r--r--ospfd/ospf_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index c957c8c014..b9f154ad03 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -9412,7 +9412,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)) ||