windows-more-cleanups-20060201
[openafs.git] / src / WINNT / afsd / cm_freelance.c
index 281f2f9..a9308c8 100644 (file)
@@ -426,7 +426,9 @@ int cm_reInitLocalMountPoints() {
                      lscpp = &tscp->nextp, tscp = tscp->nextp) {
                     if (tscp == scp) {
                         *lscpp = scp->nextp;
+                       lock_ObtainMutex(&scp->mx);
                         scp->flags &= ~CM_SCACHEFLAG_INHASH;
+                       lock_ReleaseMutex(&scp->mx);
                         break;
                     }
                 }