Windows: cm_SetServerBusyState use cm_ServerEqual

When the busy state of a server is set it must apply to all
server references if the server is multi-homed.  Use cm_ServerEqual()
to do so.

Change-Id: I76c07746eb396af988a5270804e221e7a641db66
Reviewed-on: http://gerrit.openafs.org/7355
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-05-06 09:54:55 -04:00 committed by Jeffrey Altman
parent 193a56aa66
commit 345d643729

View File

@ -250,7 +250,7 @@ cm_SetServerBusyStatus(cm_serverRef_t *serversp, cm_server_t *serverp)
for (tsrp = serversp; tsrp; tsrp=tsrp->next) { for (tsrp = serversp; tsrp; tsrp=tsrp->next) {
if (tsrp->status == srv_deleted) if (tsrp->status == srv_deleted)
continue; continue;
if (tsrp->server == serverp && tsrp->status == srv_not_busy) { if (cm_ServerEqual(tsrp->server, serverp) && tsrp->status == srv_not_busy) {
tsrp->status = srv_busy; tsrp->status = srv_busy;
break; break;
} }