Merge pull request #20363 from Shbinging/fix_delete_sr_local_label_bug

ospfd: fix delete sr-local-label bug
This commit is contained in:
Donald Sharp 2026-01-05 09:04:38 -05:00 committed by GitHub
commit e85d83ff1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -583,11 +583,11 @@ static void ospf_ext_link_delete_adj_sid(struct ext_itf *exti)
/* Release Primary & Backup Labels from Label Manager */
if (exti->stype == ADJ_SID) {
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(GET_LABEL(ntohl(exti->adj_sid[0].value)));
ospf_sr_local_block_release_label(GET_LABEL(ntohl(exti->adj_sid[1].value)));
} else {
ospf_sr_local_block_release_label(exti->lan_sid[0].value);
ospf_sr_local_block_release_label(exti->lan_sid[1].value);
ospf_sr_local_block_release_label(GET_LABEL(ntohl(exti->lan_sid[0].value)));
ospf_sr_local_block_release_label(GET_LABEL(ntohl(exti->lan_sid[1].value)));
}
/* And reset corresponding TLV */
unset_adjacency_sid(exti);