summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/rpc')
-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 b229fb3..3f61299 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));
OpenPOWER on IntegriCloud