Browse Source

Make x_handy in XDR u_int, not int since there are places in the

code that assign a u_int value to x_handy.  However, this means
that we need to be careful checking for overflow as we can no longer
subtract a value and check the result for < 0.  We reorder the
expression instead to avoid this problem (basic algebra).
deraadt@ OK
OPENBSD_3_3
millert 22 years ago
parent
commit
bae6371d6e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/include/rpc/xdr.h

+ 2
- 2
src/include/rpc/xdr.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: xdr.h,v 1.4 2002/02/17 19:42:21 millert Exp $ */
/* $OpenBSD: xdr.h,v 1.5 2002/12/11 22:55:39 millert Exp $ */
/* $NetBSD: xdr.h,v 1.7 1995/04/29 05:28:06 cgd Exp $ */ /* $NetBSD: xdr.h,v 1.7 1995/04/29 05:28:06 cgd Exp $ */
/* /*
@ -120,7 +120,7 @@ typedef struct __rpc_xdr {
caddr_t x_public; /* users' data */ caddr_t x_public; /* users' data */
caddr_t x_private; /* pointer to private data */ caddr_t x_private; /* pointer to private data */
caddr_t x_base; /* private used for position info */ caddr_t x_base; /* private used for position info */
int x_handy; /* extra private word */
u_int x_handy; /* extra private word */
} XDR; } XDR;
/* /*


Loading…
Cancel
Save