Initialize the values of the server last errors
introduced in commit
94a8ce970d57498583e249ea61725fce1ee53a50
to avoid logging garbage for the last error codes.
Change-Id: I0df262bad5d02231407d0dd65e1f1d32d791912f
Reviewed-on: http://gerrit.openafs.org/10082
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
tvp = afs_FindVolume(afid, READ_LOCK);
if (tvp) {
for (i = 0; i < AFS_MAXHOSTS; i++) {
- if (tvp->serverHost[i]) {
+ if (areq->lasterror[i] && tvp->serverHost[i]) {
sa = tvp->serverHost[i]->addr;
if (sa) {
address = ntohl(sa->sa_ip);
afs_FinalizeReq(ato);
while (i < AFS_MAXHOSTS) {
ato->skipserver[i] = afrom->skipserver[i];
+ ato->lasterror[i] = afrom->lasterror[i];
i++;
}
if (afrom->tokenError)
return;
while (i < AFS_MAXHOSTS) {
areq->skipserver[i] = 0;
+ areq->lasterror[i] = 0;
i++;
}
areq->busyCount = 0;