]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: avoid null ptr in RDR_RequestFileExtentsAsync
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 12 Nov 2011 22:24:12 +0000 (17:24 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 13 Nov 2011 01:54:15 +0000 (17:54 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/user/RDRFunction.c

index d618489ede31c098c153ca7758ec287b783fd158..0c6154853b725c6b6e2125da756a7d74faf3c110 100644 (file)
@@ -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;
     }