mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
Windows: AFSProcessUserFsRequest NULL dereference
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>
This commit is contained in:
parent
165c9e7465
commit
aaa1844b8f
@ -172,6 +172,7 @@ AFSProcessUserFsRequest( IN PIRP Irp)
|
|||||||
pCcb = (AFSCcb *)pIrpSp->FileObject->FsContext2;
|
pCcb = (AFSCcb *)pIrpSp->FileObject->FsContext2;
|
||||||
|
|
||||||
if( pFcb == NULL ||
|
if( pFcb == NULL ||
|
||||||
|
pCcb == NULL ||
|
||||||
pCcb->DirectoryCB == NULL)
|
pCcb->DirectoryCB == NULL)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user