diff --git a/src/WINNT/afsd/cm_cell.c b/src/WINNT/afsd/cm_cell.c index a54c0cbe48..317cd73b48 100644 --- a/src/WINNT/afsd/cm_cell.c +++ b/src/WINNT/afsd/cm_cell.c @@ -94,15 +94,13 @@ cm_cell_t *cm_UpdateCell(cm_cell_t * cp, afs_uint32 flags) ((cp->flags & CM_CELLFLAG_VLSERVER_INVALID))) ) { - /* must empty cp->vlServersp */ - if (cp->vlServersp) { - cm_FreeServerList(&cp->vlServersp, CM_FREESERVERLIST_DELETE); - cp->vlServersp = NULL; - } - lock_ReleaseMutex(&cp->mx); mxheld = 0; + /* must empty cp->vlServersp */ + if (cp->vlServersp) + cm_FreeServerList(&cp->vlServersp, CM_FREESERVERLIST_DELETE); + rock.cellp = cp; rock.flags = flags; code = cm_SearchCellRegistry(1, cp->name, NULL, cp->linkedName, cm_AddCellProc, &rock); diff --git a/src/WINNT/afsd/cm_conn.c b/src/WINNT/afsd/cm_conn.c index 6534904d48..33ac4c8bf4 100644 --- a/src/WINNT/afsd/cm_conn.c +++ b/src/WINNT/afsd/cm_conn.c @@ -406,7 +406,6 @@ cm_Analyze(cm_conn_t *connp, cm_user_t *userp, cm_req_t *reqp, lock_ReleaseWrite(&cm_serverLock); if (free_svr_list) { cm_FreeServerList(serverspp, 0); - serverspp = NULL; serversp = NULL; free_svr_list = 0; } @@ -508,7 +507,6 @@ cm_Analyze(cm_conn_t *connp, cm_user_t *userp, cm_req_t *reqp, if (free_svr_list) { cm_FreeServerList(serverspp, 0); - serverspp = NULL; serversp = NULL; free_svr_list = 0; } @@ -608,7 +606,6 @@ cm_Analyze(cm_conn_t *connp, cm_user_t *userp, cm_req_t *reqp, /* Free the server list before cm_ForceUpdateVolume is called */ if (free_svr_list) { cm_FreeServerList(serverspp, 0); - serverspp = NULL; serversp = NULL; free_svr_list = 0; } diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index 2b3bde0125..f7ffda8ddc 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -1486,7 +1486,6 @@ cm_IoctlNewCell(struct cm_ioctl *ioctlp, struct cm_user *userp) /* delete all previous server lists - cm_FreeServerList will ask for write on cm_ServerLock*/ cm_FreeServerList(&cp->vlServersp, CM_FREESERVERLIST_DELETE); - cp->vlServersp = NULL; lock_ReleaseWrite(&cm_cellLock); rock.cellp = cp;