diff --git a/src/rx/xdr_mem.c b/src/rx/xdr_mem.c index 3b68ce1d08..50593c7c02 100644 --- a/src/rx/xdr_mem.c +++ b/src/rx/xdr_mem.c @@ -87,7 +87,7 @@ static void xdrmem_destroy(void) static bool_t xdrmem_getint32(register XDR *xdrs, afs_int32 *lp) { - if (xdrs->x_handy -= sizeof(afs_int32)) + if (xdrs->x_handy < sizeof(afs_int32)) return (FALSE); else xdrs->x_handy -= sizeof(afs_int32); @@ -98,7 +98,7 @@ static bool_t xdrmem_getint32(register XDR *xdrs, afs_int32 *lp) static bool_t xdrmem_putint32(register XDR *xdrs, afs_int32 *lp) { - if (xdrs->x_handy -= sizeof(afs_int32)) + if (xdrs->x_handy < sizeof(afs_int32)) return (FALSE); else xdrs->x_handy -= sizeof(afs_int32);