]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix double clearing of zif->es_info.es 7217/head
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 30 Sep 2020 19:03:06 +0000 (12:03 -0700)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Mon, 19 Oct 2020 16:36:44 +0000 (09:36 -0700)
commitab06b03315007ab87e70acb28ce7025bcd79113d
treebb1ad1d84226e61015a6aed23103710a3e6f92c6
parentc85b63238ae18baaabd833cdbfba79bba227a0e0
zebra: fix double clearing of zif->es_info.es

This problem was accidentally introduced as a part of another fixup -
[
commit e378f5020d1af1aee587659e5602ee8c07eb05f4 (anuradhak/mh-misc-fixes, mh-misc-fixes)
Author: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Date:   Tue Sep 15 16:50:14 2020 -0700

    zebra: fix use of freed es during zebra shutdown
]

zif->es_info.es is cleared as a part of zebra_evpn_es_local_info_clear so it
cannot be passed around as a pointer from zebra_evpn_local_es_update/del.

Because of this bug removing ES from an interface resulted in
a zebra crash.

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
zebra/zebra_evpn_mh.c