From 04a25e0a4057b63cf7c700b17b1a6ab28e469547 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 14 Aug 2008 00:49:15 +0000 Subject: [PATCH] nfstrans-extra-protection-20080813 LICENSE IPL10 ensure, at least, that there is a filehandle for everything we check --- src/afs/afs_nfsdisp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/afs/afs_nfsdisp.c b/src/afs/afs_nfsdisp.c index 41076ac4a..2c72374e6 100644 --- a/src/afs/afs_nfsdisp.c +++ b/src/afs/afs_nfsdisp.c @@ -177,7 +177,7 @@ nfs2_to_afs_call(int which, caddr_t * args, fhandle_t ** fhpp, } /* Ok if arg 1 is in AFS or if 2 args and arg 2 is in AFS */ - if (is_afs_fh(fhp1)) { + if (fhp1 && is_afs_fh(fhp1)) { *fhpp = fhp1; if (fhp2) *fh2pp = fhp2; @@ -237,7 +237,7 @@ acl2_to_afs_call(int which, caddr_t * args, fhandle_t ** fhpp) return NULL; } - if (is_afs_fh(fhp)) { + if (fhp && is_afs_fh(fhp)) { *fhpp = fhp; return 1; } @@ -972,7 +972,7 @@ nfs3_to_afs_call(int which, caddr_t * args, nfs_fh3 ** fhpp, nfs_fh3 ** fh2pp) return NULL; } - if (is_afs_fh3(fhp1)) { + if (fhp1 && is_afs_fh3(fhp1)) { *fhpp = fhp1; if (fhp2) *fh2pp = fhp2; @@ -1016,7 +1016,7 @@ acl3_to_afs_call(int which, caddr_t * args, nfs_fh3 ** fhpp) return NULL; } - if (is_afs_fh3(fhp)) { + if (fhp && is_afs_fh3(fhp)) { *fhpp = fhp; return 1; } -- 2.39.5