summaryrefslogtreecommitdiff
path: root/lib/hook.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-11 18:54:26 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-11 19:02:22 +0200
commitb4e55fc5e86ad6ed38b04ed121890227dcc00463 (patch)
tree49910093b5edd28a5163ed718cfdac8d918740c6 /lib/hook.c
parentfc4ecb5a5e0acee20d7a8fa5a0e9c4403ae51f6e (diff)
lib: fix prefix list trie corruption
The specific code here needs to establish an absolute order of more specific to less specific possible matches in a prefix list. This is indirectly checked by an assert on insertion, because the "next best" entry is required to be consistent even when joining multiple chains of candidates. Unfortunately, trie_install_fn() would insert entries too far ahead in the chain if another entry with higher sequence number was seen. This breaks the trie and (rightfully) triggers the assertion failure on insert. Fixes: #937 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/hook.c')
0 files changed, 0 insertions, 0 deletions