OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1495-gae6a392
Gerrit Code Review
gerrit@openafs.org
Tue, 9 Aug 2011 09:07:34 -0700 (PDT)
The following commit has been merged in the master branch:
commit ae6a3929489035ddcd17785abab8900cebd22eb3
Author: Garrett Wollman <wollman@csail.mit.edu>
Date: Mon Aug 8 21:18:15 2011 -0400
kdb: don't dereference a null pointer on corrupt database
When iterating through the database, kdb would dereference a
null pointer if it encountered an error retrieving the value
or if the value was not the right length, in code that was clearly
cut-and-pasted from the other branch of an "if" statement where a
specific entry was requested on the command line. Print the name
of the entry with the problem as was apparently intended.
Change-Id: Idc2d3c9b6049e5d3b0eb302353a68bcfdad6a90d
Found-by: clang static analyzer
Reviewed-on: http://gerrit.openafs.org/5174
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/kauth/kdb.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
--
OpenAFS Master Repository