]> git.proxmox.com Git - mirror_frr.git/commit
[lib] Make message lookup function more robust.
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 20 Mar 2007 20:48:27 +0000 (20:48 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 20 Mar 2007 20:48:27 +0000 (20:48 +0000)
commitafb88a669167358ea2be64aa0d10c8c42fa7509c
tree2439441fa56db6ecbae310473af7f1e1808916f2
parentad81f8cc2e77275cdeef1267d1ff4173eb89e093
[lib] Make message lookup function more robust.

2007-03-20 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* log.c: (mes_lookup) Make the function more robust: check for
  cases where the index does not match the key value at that position.
  If so, give a warning and fall back to a linear search.
  And improve the error message in cases where even that fails.
lib/ChangeLog
lib/log.c