mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Minor bug fix in XDR code introduced in last minute change before landing.
1) Removed xdr_bytesrec typedef which has no consumers. If we re-add it should also probably be xdr_bytesrec_t.
This commit is contained in:
committed by
Brian Behlendorf
parent
f48b61938a
commit
6c33eb8162
@@ -186,7 +186,7 @@ xdrmem_enc_bytes(XDR *xdrs, caddr_t cp, const uint_t cnt)
|
||||
if (xdrs->x_addr > xdrs->x_addr_end)
|
||||
return FALSE;
|
||||
|
||||
if (xdrs->x_addr_end - xdrs->x_addr > size)
|
||||
if (xdrs->x_addr_end - xdrs->x_addr < size)
|
||||
return FALSE;
|
||||
|
||||
memcpy(xdrs->x_addr, cp, cnt);
|
||||
@@ -215,7 +215,7 @@ xdrmem_dec_bytes(XDR *xdrs, caddr_t cp, const uint_t cnt)
|
||||
if (xdrs->x_addr > xdrs->x_addr_end)
|
||||
return FALSE;
|
||||
|
||||
if (xdrs->x_addr_end - xdrs->x_addr > size)
|
||||
if (xdrs->x_addr_end - xdrs->x_addr < size)
|
||||
return FALSE;
|
||||
|
||||
memcpy(cp, xdrs->x_addr, cnt);
|
||||
|
||||
Reference in New Issue
Block a user