diff options
| author | Chirag Shah <chirag@nvidia.com> | 2021-01-25 11:44:56 -0800 |
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2021-03-01 16:04:31 -0800 |
| commit | f7f101156eb0e225f375f12cf4f863ebbe3fed03 (patch) | |
| tree | 2a5757e5cd0df03ee710018bbbe74e4287bd6af9 /lib/command_graph.c | |
| parent | b12bcae46241e95a5207d3bf45aa8633b553a13e (diff) | |
lib: fix a crash in plist update
Problem:
Prefix-list with mulitiple rules, an update to
a rule/sequence with different prefix/prefixlen
reset prefix-list next-base pointer to avoid
having stale value.
In some case the old next-bast's reference leads
to an assert in tri (trie_install_fn ) add.
bt:
(object=0x55576a4c8a00, updptr=0x55576a4b97e0) at lib/plist.c:560
(plist=0x55576a4a1770, pentry=0x55576a4c8a00) at lib/plist.c:585
(ple=0x55576a4c8a00) at lib/plist.c:745
(args=0x7fffe04beb50) at lib/filter_nb.c:1181
Solution:
Reset prefix-list next-base pointer whenver a
sequence/rule is updated.
Ticket:CM-33109
Testing Done:
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions
