aboutsummaryrefslogtreecommitdiff
path: root/sys/rpc/authunix_prot.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2008-08-17 23:27:27 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2008-08-17 23:27:27 +0000
commit603724d3abed34351087e20b8cb363d8e02072c1 (patch)
tree1496da534aec03cf2f9d2d0735d80e4c1e3b5715 /sys/rpc/authunix_prot.c
parentac2dcb729fc5b54bc829c23d239dec65a057bf49 (diff)
Notes
Diffstat (limited to 'sys/rpc/authunix_prot.c')
-rw-r--r--sys/rpc/authunix_prot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/rpc/authunix_prot.c b/sys/rpc/authunix_prot.c
index b229fb3cee10..3f61299bd9a6 100644
--- a/sys/rpc/authunix_prot.c
+++ b/sys/rpc/authunix_prot.c
@@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$");
#include <sys/mutex.h>
#include <sys/systm.h>
#include <sys/ucred.h>
+#include <sys/vimage.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
@@ -74,7 +75,7 @@ xdr_authunix_parms(XDR *xdrs, uint32_t *time, struct xucred *cred)
/*
* Restrict name length to 255 according to RFC 1057.
*/
- namelen = strlen(hostname);
+ namelen = strlen(V_hostname);
if (namelen > 255)
namelen = 255;
} else {
@@ -90,7 +91,7 @@ xdr_authunix_parms(XDR *xdrs, uint32_t *time, struct xucred *cred)
* Ignore the hostname on decode.
*/
if (xdrs->x_op == XDR_ENCODE) {
- if (!xdr_opaque(xdrs, hostname, namelen))
+ if (!xdr_opaque(xdrs, V_hostname, namelen))
return (FALSE);
} else {
xdr_setpos(xdrs, xdr_getpos(xdrs) + RNDUP(namelen));