diff --git a/src/WINNT/afsd/cm_server.c b/src/WINNT/afsd/cm_server.c index 24aab7fdff..67d5c75e07 100644 --- a/src/WINNT/afsd/cm_server.c +++ b/src/WINNT/afsd/cm_server.c @@ -35,13 +35,13 @@ cm_ForceNewConnectionsAllServers(void) { cm_server_t *tsp; - lock_ObtainRead(&cm_serverLock); + lock_ObtainWrite(&cm_serverLock); for (tsp = cm_allServersp; tsp; tsp = tsp->allNextp) { cm_GetServerNoLock(tsp); cm_ForceNewConnections(tsp); cm_PutServerNoLock(tsp); } - lock_ReleaseRead(&cm_serverLock); + lock_ReleaseWrite(&cm_serverLock); } void