]> git.puffer.fish Git - matthieu/frr.git/commit
Zebra: Fix multiple RNH deletes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:10 +0000 (18:04 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:10 +0000 (18:04 -0700)
commit70c0f18432e395b401da4c916760999f5e4241ef
treef54d1c733b016924dfbc1310c7d12d0b9ab47151
parentf44f6668eaa1ca20923451178ccbaf63402d070c
Zebra: Fix multiple RNH deletes

The code is structured in a way that ends up invoking zebra_delete_rnh()
multiple times which can lead to crashes and asserts. This patch fixes
the issue by setting a flag when an RNH structure is being deleted and
ignores any further attempts to delete the structure.
zebra/zebra_rib.c
zebra/zebra_rnh.c
zebra/zebra_rnh.h