From aaa1844b8f806513661d16c6429d4d1b890471f2 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 13 Aug 2012 17:56:02 -0400 Subject: [PATCH] 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 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp index a67e504bdc..a8921668d0 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp @@ -172,6 +172,7 @@ AFSProcessUserFsRequest( IN PIRP Irp) pCcb = (AFSCcb *)pIrpSp->FileObject->FsContext2; if( pFcb == NULL || + pCcb == NULL || pCcb->DirectoryCB == NULL) {