]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: AFSProcessUserFsRequest NULL dereference
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 13 Aug 2012 21:56:02 +0000 (17:56 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Tue, 14 Aug 2012 04:01:23 +0000 (21:01 -0700)
Protect against an Irp with a NULL FsContext2 field.
These represent Irps that are not intended for our device
since they do not have an AFSCcb associated with it.

Change-Id: I2cf6b60e022df5074482544ef3142374149e38d6
Reviewed-on: http://gerrit.openafs.org/7971
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp

index a67e504bdcf2f0219c649d2b77ecc147352a5118..a8921668d00b2dec3254c302f4a2b1720aa91f44 100644 (file)
@@ -172,6 +172,7 @@ AFSProcessUserFsRequest( IN PIRP Irp)
         pCcb = (AFSCcb *)pIrpSp->FileObject->FsContext2;
 
         if( pFcb == NULL ||
+            pCcb == NULL ||
             pCcb->DirectoryCB == NULL)
         {