mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
xdr-updates-20020731
update xdr so internal variables match what's being passed in
This commit is contained in:
parent
aea332588b
commit
2d6ebd0cda
@ -558,6 +558,8 @@ xdr_string(xdrs, cpp, maxsize)
|
||||
u_int size;
|
||||
u_int nodesize;
|
||||
|
||||
if (maxsize > ((~0) >> 1) - 1) maxsize = ((~0) >> 1) - 1;
|
||||
|
||||
/*
|
||||
* first deal with the length since xdr strings are counted-strings
|
||||
*/
|
||||
|
@ -84,7 +84,10 @@ xdr_array(xdrs, addrp, sizep, maxsize, elsize, elproc)
|
||||
register caddr_t target = *addrp;
|
||||
register u_int c; /* the actual element count */
|
||||
register bool_t stat = TRUE;
|
||||
register int nodesize;
|
||||
register u_int nodesize;
|
||||
|
||||
i = ((~0) >> 1) / elsize;
|
||||
if (maxsize > i) maxsize = i;
|
||||
|
||||
/* like strings, arrays are really counted arrays */
|
||||
if (! xdr_u_int(xdrs, sizep)) {
|
||||
|
@ -89,7 +89,10 @@ bool_t xdr_arrayN(xdrs, addrp, sizep, maxsize, elsize, elproc)
|
||||
register caddr_t target = *addrp;
|
||||
register u_int c; /* the actual element count */
|
||||
register bool_t stat = TRUE;
|
||||
register int nodesize;
|
||||
register u_int nodesize;
|
||||
|
||||
i = ((~0) >> 1) / elsize;
|
||||
if (maxsize > i) maxsize = i;
|
||||
|
||||
/* like strings, arrays are really counted arrays */
|
||||
if (! xdr_u_int(xdrs, sizep)) {
|
||||
|
Loading…
Reference in New Issue
Block a user