From eff18f23e9310a4aeb4dc4a661e9a0ba88257e3a Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 6 Aug 2008 15:33:00 +0000 Subject: [PATCH] Fix 64bt build. --- lib/librpcsec_gss/rpcsec_gss_prot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librpcsec_gss/rpcsec_gss_prot.c b/lib/librpcsec_gss/rpcsec_gss_prot.c index 930bb04ec5eb..924ff9f92c6e 100644 --- a/lib/librpcsec_gss/rpcsec_gss_prot.c +++ b/lib/librpcsec_gss/rpcsec_gss_prot.c @@ -100,6 +100,7 @@ xdr_rpc_gss_wrap_data(XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr, gss_buffer_desc databuf, wrapbuf; OM_uint32 maj_stat, min_stat; int start, end, conf_state; + u_int len; bool_t xdr_stat; /* Skip databody length. */ @@ -121,7 +122,8 @@ xdr_rpc_gss_wrap_data(XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr, if (svc == rpc_gss_svc_integrity) { /* Marshal databody_integ length. */ XDR_SETPOS(xdrs, start); - if (!xdr_u_int(xdrs, &databuf.length)) + len = databuf.length; + if (!xdr_u_int(xdrs, &len)) return (FALSE); /* Checksum rpc_gss_data_t. */