Skip to content

Commit

Permalink
Merge pull request #1592 from lihongguang/master
Browse files Browse the repository at this point in the history
ospfd: fix [no] area authentication command
  • Loading branch information
donaldsharp authored Jan 4, 2018
2 parents 9bc82f1 + ca19319 commit 3cace9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,12 +1974,13 @@ DEFUN (ospf_area_authentication_message_digest,
"Use message-digest authentication\n")
{
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
int idx_ipv4_number = 1;
int idx = 0;
struct ospf_area *area;
struct in_addr area_id;
int format;

VTY_GET_OSPF_AREA_ID(area_id, format, argv[idx_ipv4_number]->arg);
argv_find(argv, argc, "area", &idx);
VTY_GET_OSPF_AREA_ID(area_id, format, argv[idx + 1]->arg);

area = ospf_area_get(ospf, area_id);
ospf_area_display_format_set(ospf, area, format);
Expand Down

0 comments on commit 3cace9d

Please sign in to comment.