afs: on uuid init fail, don't leave garbage behind

make sure we zero the uuid if we failed

Change-Id: I9d21e003b68eff0ce9bea4634c601c4663a0c078
Reviewed-on: http://gerrit.openafs.org/5599
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Derrick Brashear 2011-10-11 15:21:12 -04:00
parent 87dcfc872c
commit 9f68e0dd31

View File

@ -1076,7 +1076,9 @@ afs_syscall_call(long parm, long parm2, long parm3,
#if (!defined(AFS_NONFSTRANS)) || defined(AFS_AIX_IAUTH_ENV) #if (!defined(AFS_NONFSTRANS)) || defined(AFS_AIX_IAUTH_ENV)
afs_nfsclient_init(); afs_nfsclient_init();
#endif #endif
afs_uuid_create(&afs_cb_interface.uuid); if (afs_uuid_create(&afs_cb_interface.uuid) != 0)
memset(&afs_cb_interface.uuid, 0, sizeof(afsUUID));
printf("found %d non-empty cache files (%d%%).\n", printf("found %d non-empty cache files (%d%%).\n",
afs_stats_cmperf.cacheFilesReused, afs_stats_cmperf.cacheFilesReused,
(100 * afs_stats_cmperf.cacheFilesReused) / (100 * afs_stats_cmperf.cacheFilesReused) /