mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
DEVEL15-windows-callback-20080314
LICENSE MIT
Protect against a null volp
(cherry picked from commit 6fef8b7429
)
This commit is contained in:
parent
5631232d3d
commit
cca102a087
@ -1820,6 +1820,9 @@ long cm_CBServersUp(cm_scache_t *scp, time_t * downTime)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
volp = cm_GetVolumeByFID(&scp->fid);
|
volp = cm_GetVolumeByFID(&scp->fid);
|
||||||
|
if (!volp)
|
||||||
|
return 1;
|
||||||
|
|
||||||
if (volp->rw.ID == volID) {
|
if (volp->rw.ID == volID) {
|
||||||
statep = &volp->rw;
|
statep = &volp->rw;
|
||||||
} else if (volp->ro.ID == volID) {
|
} else if (volp->ro.ID == volID) {
|
||||||
|
Loading…
Reference in New Issue
Block a user