auth: GetLatestKey should allow NULL return values
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 25 Feb 2011 01:21:38 +0000 (01:21 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 26 Feb 2011 11:57:05 +0000 (03:57 -0800)
commit80f6e4fa8bbc468fe75692a4730cf822a4e0d686
tree14088270c08082b0729b21f615e8bf2a8169bc84
parent1bc528d008fe11c43da6f6eef4210561bab33cbc
auth: GetLatestKey should allow NULL return values

Existing callers in the code use
afsconf_GetLatestKey(dir, NULL, NULL) to check for the existence of
a key file. We need to permit NULL values for the return pointers
to this function.

Also update the tests to check for this behaviour.

Change-Id: I94e74138ddeed8d167c1e6f12e297411c638e1b9
Reviewed-on: http://gerrit.openafs.org/4050
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/auth/keys.c
tests/auth/keys-t.c