mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
xdr: Len can never be negative
The len parameter to xdr_len is unsigned, so can never be negative. Don't bother testing to see if it is negative, so that clang likes us again. Change-Id: Iad5f8b1b2d20ec55846bc1ef7b7499a30956e17f Reviewed-on: http://gerrit.openafs.org/7089 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
5e107724f3
commit
f1842bcb87
@ -171,7 +171,7 @@ xdrmem_inline(XDR *xdrs, u_int len)
|
||||
{
|
||||
afs_int32 *buf = 0;
|
||||
|
||||
if (len >= 0 && xdrs->x_handy >= len) {
|
||||
if (xdrs->x_handy >= len) {
|
||||
xdrs->x_handy -= len;
|
||||
buf = (afs_int32 *) xdrs->x_private;
|
||||
xdrs->x_private += len;
|
||||
|
Loading…
Reference in New Issue
Block a user