auth: prevent uninitialized key list in AFS config
authorMark Vitale <mvitale@sinenomine.net>
Fri, 4 Oct 2013 01:42:10 +0000 (21:42 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Sat, 26 Oct 2013 13:00:44 +0000 (06:00 -0700)
commit7b5f27f944ad773a45f1d47fa9b8962097999783
tree0b880dc56eeb19de46c93075c36c0b851bf2aa5a
parentaa440ec7cbb8732ad0d9e1e1401fe4929c2cfd50
auth: prevent uninitialized key list in AFS config

_afsconf_OpenInternal() may exit early for a number of reasons
before properly initalizing afsconf_dir->listKeys.
This leads to a crash when _afsconf_CloseInternal() attempts
to clean up listKeys.

Prevent this situation by calling afsconf_InitKeys() before any
possible exit from _afsconf_OpenInternal().

Change-Id: I6911427817a2518a576c00a7ea56351f9fb4fd19
Reviewed-on: http://gerrit.openafs.org/10323
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/auth/cellconfig.c