mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
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:
parent
44ca4aa90e
commit
0c6a2a7b35
@ -1494,6 +1494,7 @@ vl_Initialize(struct afsconf_dir *dir)
|
||||
struct rx_securityClass *sc;
|
||||
struct rx_connection *serverconns[MAXSERVERS];
|
||||
|
||||
memset(serverconns, 0, sizeof(serverconns));
|
||||
code = afsconf_ClientAuth(dir, &sc, &scIndex);
|
||||
if (code) {
|
||||
ViceLog(0, ("Could not get security object for localAuth\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user