svn commit: r185862 - in user/dfr/gssapi/6/sys: . nfsserver
Doug Rabson
dfr at FreeBSD.org
Wed Dec 10 07:31:37 PST 2008
Author: dfr
Date: Wed Dec 10 15:31:37 2008
New Revision: 185862
URL: http://svn.freebsd.org/changeset/base/185862
Log:
MFC: 185860 - stack overflow in fha_assign.
Modified:
user/dfr/gssapi/6/sys/ (props changed)
user/dfr/gssapi/6/sys/nfsserver/nfs_fha.c
Modified: user/dfr/gssapi/6/sys/nfsserver/nfs_fha.c
==============================================================================
--- user/dfr/gssapi/6/sys/nfsserver/nfs_fha.c Wed Dec 10 15:30:45 2008 (r185861)
+++ user/dfr/gssapi/6/sys/nfsserver/nfs_fha.c Wed Dec 10 15:31:37 2008 (r185862)
@@ -162,7 +162,7 @@ static void
fha_extract_info(struct svc_req *req, struct fha_info *i)
{
struct mbuf *md = req->rq_args;
- fhandle_t fh;
+ nfsfh_t fh;
caddr_t dpos = mtod(md, caddr_t);
static u_int64_t random_fh = 0;
int error;
@@ -205,11 +205,11 @@ fha_extract_info(struct svc_req *req, st
goto out;
/* Grab the filehandle. */
- error = nfsm_srvmtofh_xx(&fh, v3, &md, &dpos);
+ error = nfsm_srvmtofh_xx(&fh.fh_generic, v3, &md, &dpos);
if (error)
goto out;
- i->fh = *(const u_int64_t *)(fh.fh_fid.fid_data);
+ i->fh = *(const u_int64_t *)(fh.fh_generic.fh_fid.fid_data);
/* Content ourselves with zero offset for all but reads. */
if (procnum != NFSPROC_READ)
More information about the svn-src-user
mailing list