aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/mfib/mfib_entry_src.h
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2022-03-23 14:51:57 +0000
committerDamjan Marion <dmarion@me.com>2022-03-24 11:29:27 +0000
commit60bb4534270c4c931ac441e9ec7de9bf09e47401 (patch)
treeeaa2b4ae8554f6fd02fbee341b28358a6ab8c0b1 /src/vnet/mfib/mfib_entry_src.h
parent03b22e62e108fc2ed7a0186e372dc752b0afa46c (diff)
fib: Fix crash when removing a covering prefix
Type: fix When a covering entry is removed from the table, the covered entries first see it 'updated' and then 'removed'. the crash occurs because the covered prefixes share (simple pointer copy) the covereds hash table of path extensions. During the cervers deletion this hash table has been removed and the update of the covered crashes when recaluationg forwarding becuase it uses the free'd hash. Fix is to refetch the shared hash table (which is NULL) when the covered is updated. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: Icefca9d7b21da975111d0e974d75f663fc0cc00c
Diffstat (limited to 'src/vnet/mfib/mfib_entry_src.h')
-rw-r--r--src/vnet/mfib/mfib_entry_src.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/mfib/mfib_entry_src.h b/src/vnet/mfib/mfib_entry_src.h
index b85c010779c..ab3cb3ebda7 100644
--- a/src/vnet/mfib/mfib_entry_src.h
+++ b/src/vnet/mfib/mfib_entry_src.h
@@ -109,7 +109,7 @@ typedef struct mfib_entry_src_t_
/**
* Hash table of path extensions
*/
- mfib_path_ext_t *mfes_exts;
+ uword *mfes_exts;
/**
* Covering entry (if needed)