]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-fs-whereis-freelance-20070324
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 24 Mar 2007 05:00:39 +0000 (05:00 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 24 Mar 2007 05:00:39 +0000 (05:00 +0000)
do not assert on the lack of a cell when calling fs whereis on the
freelance volume.  return CM_ERROR_NOCELL instead.

(cherry picked from commit 48cd8daff8c8bd384a6583bab07e1d84ae461efd)

src/WINNT/afsd/cm_ioctl.c

index 89099a33b837d6a09ba8bad109362147926dcadd..b4909930df77d294ad31796fcc392ee3035aa138 100644 (file)
@@ -939,10 +939,12 @@ long cm_IoctlWhereIs(struct smb_ioctl *ioctlp, struct cm_user *userp)
     volume = scp->fid.volume;
 
     cellp = cm_FindCellByID(scp->fid.cell);
-    osi_assert(cellp);
 
     cm_ReleaseSCache(scp);
 
+    if (!cellp)
+       return CM_ERROR_NOSUCHCELL;
+
     code = cm_GetVolumeByID(cellp, volume, userp, &req, &tvp);
     if (code) return code;