lib: Simplify iov_buf
authorVolker Lendecke <vl@samba.org>
Sun, 21 Dec 2014 13:52:17 +0000 (14:52 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 9 Jan 2015 22:42:49 +0000 (23:42 +0100)
commitf58545dbc2836cd3fdf351babb1304d84fd3e06d
treef80f571b6f2c92592dbd19879c6fbe1f86afa604
parent0e26e0f6f6b7d657fdd51202f5919328278824e6
lib: Simplify iov_buf

According to

https://www.securecoding.cert.org/confluence/display/seccode/INT30-C.+Ensure+that+unsigned+integer+operations+do+not+wrap

we only need to check against one operand.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jan  9 23:42:49 CET 2015 on sn-devel-104
source3/lib/iov_buf.c