Skip to content

Commit

Permalink
Merge pull request #13065 from rgirada/ospf_abr_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldsharp committed Mar 23, 2023
2 parents 6927446 + c8c1a24 commit 173786f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ospfd/ospf_lsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ static struct ospf_lsa *ospf_handle_summarylsa_lsId_chg(struct ospf_area *area,
struct in_addr old_id)
{
struct ospf_lsa *lsa = NULL;
struct ospf_lsa *new = NULL;
struct ospf_lsa *summary_lsa = NULL;
struct summary_lsa *sl = NULL;
struct ospf_area *old_area = NULL;
struct ospf *ospf = area->ospf;
Expand Down Expand Up @@ -1328,19 +1328,19 @@ static struct ospf_lsa *ospf_handle_summarylsa_lsId_chg(struct ospf_area *area,

if (type == OSPF_SUMMARY_LSA) {
/*Refresh the LSA with new LSA*/
ospf_summary_lsa_refresh(ospf, lsa);
summary_lsa = ospf_summary_lsa_refresh(ospf, lsa);

new = ospf_summary_lsa_prepare_and_flood(
&old_prefix, old_metric, old_area, old_id);
ospf_summary_lsa_prepare_and_flood(&old_prefix, old_metric,
old_area, old_id);
} else {
/*Refresh the LSA with new LSA*/
ospf_summary_asbr_lsa_refresh(ospf, lsa);
summary_lsa = ospf_summary_asbr_lsa_refresh(ospf, lsa);

new = ospf_asbr_summary_lsa_prepare_and_flood(
&old_prefix, old_metric, old_area, old_id);
ospf_asbr_summary_lsa_prepare_and_flood(&old_prefix, old_metric,
old_area, old_id);
}

return new;
return summary_lsa;
}

/* Originate Summary-LSA. */
Expand Down

0 comments on commit 173786f

Please sign in to comment.