mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
056399bb0d
commit
4785361388
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user