viced: null-terminate server list for ubik

when we set up the vlserver connection, we could potentially use
uninitialized memory as ubik connections. don't.

Change-Id: Idefa71874c7402c927fbf148f994f9422183208a
Reviewed-on: http://gerrit.openafs.org/7610
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Derrick Brashear 2012-06-29 10:04:10 -04:00
parent 44ca4aa90e
commit 0c6a2a7b35

View File

@ -1494,6 +1494,7 @@ vl_Initialize(struct afsconf_dir *dir)
struct rx_securityClass *sc; struct rx_securityClass *sc;
struct rx_connection *serverconns[MAXSERVERS]; struct rx_connection *serverconns[MAXSERVERS];
memset(serverconns, 0, sizeof(serverconns));
code = afsconf_ClientAuth(dir, &sc, &scIndex); code = afsconf_ClientAuth(dir, &sc, &scIndex);
if (code) { if (code) {
ViceLog(0, ("Could not get security object for localAuth\n")); ViceLog(0, ("Could not get security object for localAuth\n"));