]> git.proxmox.com Git - mirror_frr.git/commit - lib/ChangeLog
[lib] Fix the struct message LOOKUP function to be more robust
authorPaul Jakma <paul.jakma@sun.com>
Thu, 28 Feb 2008 23:26:02 +0000 (23:26 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 28 Feb 2008 23:26:02 +0000 (23:26 +0000)
commit11486b5265b2e0e2cf8b140018c47bd9a35cba93
treeccc5dfb967b156d43cb6d8ffda1816224dcf118a
parent5f56808431778fe8878ea8ea94225cca08884b48
[lib] Fix the struct message LOOKUP function to be more robust

2008-02-28 Paul Jakma <paul.jakma@sun.com>

* log.c: (mes_lookup) Sowmini Varadhan diagnosed a problem where
  this function can cause a NULL dereference, on lookups for unknown
  indices, or messages with NULL strings. Can occur, e.g., debug
  logging code when processing received messages. Fixed to accept a
  pointer to a default string to be used if there is no match.
* log.h: LOOKUP adjusted to match
lib/ChangeLog
lib/log.c
lib/log.h