summaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-07-18 01:24:57 +0000
committerRoland McGrath <roland@gnu.org>2005-07-18 01:24:57 +0000
commit32d9df233510ad7e28693b3ca1e6f63c469ea02b (patch)
tree32d1ecfd253f230d800f0484bef8ecad9665ea0c /sunrpc
parentd85f197097d999443ad302065e521c8b155b38dd (diff)
2005-04-04 Jakub Jelinek <jakub@redhat.com>
[BZ #1082] * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead of trying to encode uninitialized arglen.
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/pmap_rmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sunrpc/pmap_rmt.c b/sunrpc/pmap_rmt.c
index 644d503a1f..e068848919 100644
--- a/sunrpc/pmap_rmt.c
+++ b/sunrpc/pmap_rmt.c
@@ -125,8 +125,9 @@ xdr_rmtcall_args (XDR *xdrs, struct rmtcallargs *cap)
INTUSE(xdr_u_long) (xdrs, &(cap->vers)) &&
INTUSE(xdr_u_long) (xdrs, &(cap->proc)))
{
+ u_long dummy_arglen = 0;
lenposition = XDR_GETPOS (xdrs);
- if (!INTUSE(xdr_u_long) (xdrs, &(cap->arglen)))
+ if (!INTUSE(xdr_u_long) (xdrs, &dummy_arglen))
return FALSE;
argposition = XDR_GETPOS (xdrs);
if (!(*(cap->xdr_args)) (xdrs, cap->args_ptr))