Windows: cm_GetROVolumeID empty server list check

Instead of testing for a non-NULL server list, check to see
that the list itself is non-empty.

Change-Id: I1d8be33cd5f0713677d6013f5d7344400f6b1ae6
Reviewed-on: http://gerrit.openafs.org/7640
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
Jeffrey Altman 2012-06-21 19:37:25 -04:00
parent 056399bb0d
commit 4785361388

View File

@ -1194,7 +1194,7 @@ long cm_GetROVolumeID(cm_volume_t *volp)
long id;
lock_ObtainRead(&volp->rw);
if (volp->vol[ROVOL].ID && volp->vol[ROVOL].serversp)
if (volp->vol[ROVOL].ID && !cm_IsServerListEmpty(volp->vol[ROVOL].serversp))
id = volp->vol[ROVOL].ID;
else
id = volp->vol[RWVOL].ID;