diff options
author | dfr <dfr@FreeBSD.org> | 2008-08-06 15:33:00 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2008-08-06 15:33:00 +0000 |
commit | eff18f23e9310a4aeb4dc4a661e9a0ba88257e3a (patch) | |
tree | 5869e10d939d68d51801ef4db464ac135c2c7676 /lib/librpcsec_gss/rpcsec_gss_prot.c | |
parent | 28272d34d6a79de86296772defceaf12e49f2ffa (diff) | |
download | FreeBSD-src-eff18f23e9310a4aeb4dc4a661e9a0ba88257e3a.zip FreeBSD-src-eff18f23e9310a4aeb4dc4a661e9a0ba88257e3a.tar.gz |
Fix 64bt build.
Diffstat (limited to 'lib/librpcsec_gss/rpcsec_gss_prot.c')
-rw-r--r-- | lib/librpcsec_gss/rpcsec_gss_prot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/librpcsec_gss/rpcsec_gss_prot.c b/lib/librpcsec_gss/rpcsec_gss_prot.c index 930bb04..924ff9f 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. */ |