]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-04-04 Jakub Jelinek <jakub@redhat.com>
authorRoland McGrath <roland@gnu.org>
Mon, 18 Jul 2005 01:24:57 +0000 (01:24 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 18 Jul 2005 01:24:57 +0000 (01:24 +0000)
[BZ #1082]
* sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
of trying to encode uninitialized arglen.

sunrpc/pmap_rmt.c

index 644d503a1fdebd0d318e09f6519688a4ea39599e..e06884891991320a069263e10b917017a9d83193 100644 (file)
@@ -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))