From cca102a0870d08aeddaad7c5579c786c234e2fef Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 14 Mar 2008 16:55:25 +0000 Subject: [PATCH] DEVEL15-windows-callback-20080314 LICENSE MIT Protect against a null volp (cherry picked from commit 6fef8b74299e4ed75a1da45d7fdb948581ab2434) --- src/WINNT/afsd/cm_callback.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/WINNT/afsd/cm_callback.c b/src/WINNT/afsd/cm_callback.c index c69e63062b..266b71404b 100644 --- a/src/WINNT/afsd/cm_callback.c +++ b/src/WINNT/afsd/cm_callback.c @@ -1820,6 +1820,9 @@ long cm_CBServersUp(cm_scache_t *scp, time_t * downTime) return 1; volp = cm_GetVolumeByFID(&scp->fid); + if (!volp) + return 1; + if (volp->rw.ID == volID) { statep = &volp->rw; } else if (volp->ro.ID == volID) {