]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Fix bug in prefix trie lookup
authorPaul Jakma <paul@quagga.net>
Tue, 13 Apr 2010 21:42:33 +0000 (22:42 +0100)
committerPaul Jakma <paul@quagga.net>
Wed, 8 Dec 2010 17:06:12 +0000 (17:06 +0000)
commitf8416810aad4cba6f622c6b3f9352abdd54cd01e
tree7ca0d68cd44ea6c0b4d838f6526b3ccadcb836f9
parentd358344759d85a965bbd767f4a994695f99b842e
lib: Fix bug in prefix trie lookup

* lib/table.c: (route_node_match) fix overshoot that was causing this
  function to go 1 bit too far and thus reading past end of prefix.
  (route_node_lookup) be defensive - don't assume others will clean up
  leaves when removing info.
lib/table.c