From 1da1eaa57eb3dbb00b26ef48b47718683e79e733 Mon Sep 17 00:00:00 2001 From: Alexander Sohn Date: Mon, 10 Jul 2023 17:42:28 +0200 Subject: [PATCH] bgpd: Fix update group compare function to allow for deletion Signed-off-by: Alexander Sohn --- bgpd/bgp_updgrp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c index dee2ef53aba5..0fae8e517b0b 100644 --- a/bgpd/bgp_updgrp.c +++ b/bgpd/bgp_updgrp.c @@ -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]; @@ -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; }