Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Apply security advisory SA-13:05

  • Loading branch information...
commit f0dc3824cfd0a28aba5c542e12b13bbf754f2223 1 parent 069e284
@kmoore134 kmoore134 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  sys/fs/nfsserver/nfs_nfsdport.c
View
2  sys/fs/nfsserver/nfs_nfsdport.c
@@ -1575,6 +1575,8 @@ nfsrvd_readdir(struct nfsrv_descript *nd, int isdgram,
nd->nd_repstat = NFSERR_BAD_COOKIE;
#endif
}
+ if (!nd->nd_repstat && vp->v_type != VDIR)
+ nd->nd_repstat = NFSERR_NOTDIR;
if (nd->nd_repstat == 0 && cnt == 0) {
if (nd->nd_flag & ND_NFSV2)
/* NFSv2 does not have NFSERR_TOOSMALL */
Please sign in to comment.
Something went wrong with that request. Please try again.