libafs: initialize hard mount last errors
[openafs.git] / src / afs / afs_error.c
index 53f9fa1..1943fdd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #include "afs/afs_util.h"
 #include "afs/unified_afs.h"
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
@@ -214,6 +212,7 @@ afs_CopyError(struct vrequest *afrom, struct vrequest *ato)
     afs_FinalizeReq(ato);
     while (i < AFS_MAXHOSTS) {
        ato->skipserver[i] = afrom->skipserver[i];
+       ato->lasterror[i] = afrom->lasterror[i];
        i++;
     }
     if (afrom->tokenError)
@@ -240,6 +239,7 @@ afs_FinalizeReq(struct vrequest *areq)
        return;
     while (i < AFS_MAXHOSTS) {
        areq->skipserver[i] = 0;
+       areq->lasterror[i] = 0;
        i++;
     }
     areq->busyCount = 0;