windows-fs-whereis-freelance-20070324
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 24 Mar 2007 04:59:13 +0000 (04:59 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 24 Mar 2007 04:59:13 +0000 (04:59 +0000)
do not assert on the lack of a cell when calling fs whereis on the
freelance volume.  return CM_ERROR_NOCELL instead.

src/WINNT/afsd/cm_ioctl.c

index 9144620..00dd5f3 100644 (file)
@@ -921,10 +921,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;