Skip to content

Commit

Permalink
bgpd: Fix update group compare function to allow for deletion
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Sohn <[email protected]>
  • Loading branch information
Sohn123 committed Sep 25, 2023
1 parent b76f152 commit 1da1eaa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bgpd/bgp_updgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ static void conf_copy(struct peer *dst, struct peer *src, afi_t afi,
dst->host = XSTRDUP(MTYPE_BGP_PEER_HOST, src->host);
dst->cap = src->cap;
dst->afc[AFI_IP][SAFI_RTC] = src->afc[AFI_IP][SAFI_RTC];
dst->rtc_plist = src->rtc_plist;
dst->af_cap[afi][safi] = src->af_cap[afi][safi];
dst->afc_nego[afi][safi] = src->afc_nego[afi][safi];
dst->orf_plist[afi][safi] = src->orf_plist[afi][safi];
Expand Down Expand Up @@ -653,7 +652,7 @@ static bool updgrp_hash_cmp(const void *p1, const void *p2)
return false;

if (afi == AFI_L2VPN && safi == SAFI_EVPN &&
(pe1->afc[AFI_IP][SAFI_RTC] || pe2->afc[AFI_IP][SAFI_RTC])) {
(pe1->afc[AFI_IP][SAFI_RTC] != pe2->afc[AFI_IP][SAFI_RTC])) {
return false;
}

Expand Down

0 comments on commit 1da1eaa

Please sign in to comment.