summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ext.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2020-08-26 17:27:16 +0200
committerOlivier Dugeon <olivier.dugeon@orange.com>2020-08-26 17:27:16 +0200
commit83df36e845070aa18fa31344c0240c6552ffbc2a (patch)
tree3df6e8a4729d366641c6898560c9cc8e9364020a /ospfd/ospf_ext.c
parentOSPFd: Correct Extended Prefix flooding for SR (diff)
downloadfrr-83df36e845070aa18fa31344c0240c6552ffbc2a.tar.xz
frr-83df36e845070aa18fa31344c0240c6552ffbc2a.zip
ospfd: Coverity corrections
Following PR #6726, Coverity Scan detected some new errors in the OSPF Segment Routing code. This patch corrects them. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_ext.c')
-rw-r--r--ospfd/ospf_ext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospfd/ospf_ext.c b/ospfd/ospf_ext.c
index bc952e4ef..90dc108c0 100644
--- a/ospfd/ospf_ext.c
+++ b/ospfd/ospf_ext.c
@@ -563,9 +563,9 @@ static void ospf_ext_link_update_adj_sid(struct ext_itf *exti)
set_adj_sid(exti, true, bck_label, SID_LABEL);
set_adj_sid(exti, false, label, SID_LABEL);
} else {
- set_lan_adj_sid(exti, true, bck_label, SID_LABEL,
+ set_lan_adj_sid(exti, true, bck_label, SID_LABEL,
exti->lan_sid[0].neighbor_id);
- set_lan_adj_sid(exti, false, label, SID_LABEL,
+ set_lan_adj_sid(exti, false, label, SID_LABEL,
exti->lan_sid[1].neighbor_id);
}
@@ -590,8 +590,8 @@ static void ospf_ext_link_delete_adj_sid(struct ext_itf *exti)
ospf_sr_local_block_release_label(exti->adj_sid[0].value);
ospf_sr_local_block_release_label(exti->adj_sid[1].value);
} else {
- ospf_sr_local_block_release_label(exti->adj_sid[0].value);
- ospf_sr_local_block_release_label(exti->adj_sid[1].value);
+ ospf_sr_local_block_release_label(exti->lan_sid[0].value);
+ ospf_sr_local_block_release_label(exti->lan_sid[1].value);
}
/* And reset corresponding TLV */
unset_adjacency_sid(exti);