From: Jeffrey Altman Date: Sat, 12 Nov 2011 22:24:12 +0000 (-0500) Subject: Windows: avoid null ptr in RDR_RequestFileExtentsAsync X-Git-Tag: upstream/1.8.0_pre1^2~3045 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=eb3c9f783b9488181c57ef949e3feddcb02d381a;p=packages%2Fo%2Fopenafs.git Windows: avoid null ptr in RDR_RequestFileExtentsAsync If the cm_scache_t cannot be obtained, do not dereference it while returning an error to the redirector. Change-Id: Ia8aaa33ca4ab410dc1b0100ea5668d5660d90b75 Reviewed-on: http://gerrit.openafs.org/6002 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index d618489ed..0c6154853 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -3161,7 +3161,6 @@ RDR_RequestFileExtentsAsync( IN cm_user_t *userp, osi_Log1(afsd_logp, "RDR_RequestFileExtentsAsync cm_GetSCache FID failure code=0x%x", code); smb_MapNTError(cm_MapRPCError(code, &req), &status, TRUE); - RDR_SetFileStatus( &scp->fid, status); return FALSE; }