diff options
Diffstat (limited to 'source3/lib')
| -rw-r--r-- | source3/lib/iov_buf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/iov_buf.c b/source3/lib/iov_buf.c index f0e05a64da..82a4af5323 100644 --- a/source3/lib/iov_buf.c +++ b/source3/lib/iov_buf.c @@ -39,8 +39,8 @@ ssize_t iov_buf(const struct iovec *iov, int iovcnt, tmp = needed + thislen; - if ((tmp < needed) || (tmp < thislen)) { - /* overflow */ + if (tmp < needed) { + /* wrap */ return -1; } needed = tmp; |
