Merge pull request #8660 from qlyoung/fix-bgp-conditional-advertisement-deconfig-removing-unrelated-filters

bgpd: fix deconfig of conditional advertisement
This commit is contained in:
Donatas Abraitis 2021-05-12 12:57:50 +03:00 committed by GitHub
commit 03b682be62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6937,7 +6937,7 @@ static void peer_advertise_map_filter_update(struct peer *peer, afi_t afi,
/* Removed advertise-map configuration */ /* Removed advertise-map configuration */
if (!set) { if (!set) {
memset(filter, 0, sizeof(struct bgp_filter)); memset(&filter->advmap, 0, sizeof(filter->advmap));
/* decrement condition_filter_count delete timer if /* decrement condition_filter_count delete timer if
* this is the last advertise-map to be removed. * this is the last advertise-map to be removed.